Commit 5bbe822f authored by Dominik Charousset's avatar Dominik Charousset

Add convenience function to consumer resources

parent c68ca4af
......@@ -386,6 +386,11 @@ public:
}
}
template <class Coordinator>
auto observe_on(Coordinator* ctx) {
return ctx->make_observable().from_resource(*this);
}
explicit operator bool() const noexcept {
return ctrl_ != nullptr;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment