Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.AsyncMessageBroker Class Reference

In-Memory PubSub filtered by Type. More...

Inheritance diagram for UniRx.AsyncMessageBroker:
UniRx.IAsyncMessageBroker UniRx.IAsyncMessagePublisher UniRx.IAsyncMessageReceiver

Public Member Functions

IObservable< UnitPublishAsync< T > (T message)
 Send Message to all receiver and await complete. More...
 
IDisposable Subscribe< T > (Func< T, IObservable< Unit > > asyncMessageReceiver)
 Subscribe typed message. More...
 
void Dispose ()
 
IObservable< UnitPublishAsync< T > (T message)
 Send Message to all receiver and await complete. More...
 
IDisposable Subscribe< T > (Func< T, IObservable< Unit > > asyncMessageReceiver)
 Subscribe typed message. More...
 

Static Public Attributes

static readonly IAsyncMessageBroker Default = new AsyncMessageBroker()
 AsyncMessageBroker in Global scope.
 

Detailed Description

In-Memory PubSub filtered by Type.

Member Function Documentation

◆ PublishAsync< T >()

IObservable< Unit > UniRx.AsyncMessageBroker.PublishAsync< T > ( message)

Send Message to all receiver and await complete.

Implements UniRx.IAsyncMessagePublisher.

◆ Subscribe< T >()

IDisposable UniRx.AsyncMessageBroker.Subscribe< T > ( Func< T, IObservable< Unit > >  asyncMessageReceiver)

Subscribe typed message.

Implements UniRx.IAsyncMessageReceiver.


The documentation for this class was generated from the following file: