std::shared_ptr<ConnectableObservable<T>> PublishLast(const std::shared_ptr < Observable < T >> &source) { auto multicastSubject = std::make_shared<AsyncSubject<T>>(); return Multicast(source, multicastSubject); }
void EntityList::Unicast(uint32 charID, const char *notifyType, const char *idType, PyTuple **payload, bool seq) { //this could be implemented more efficiently, but I dont feel like it right now. character_set cset; cset.insert(charID); Multicast(cset, notifyType, idType, payload, seq); }
std::shared_ptr<ConnectableObservable<T>> Publish(const std::shared_ptr < Observable < T >> &source, V value) { auto multicastSubject = std::make_shared<BehaviorSubject<T>>(value); return Multicast(source, multicastSubject); }