You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
supermax edited this page Jun 28, 2020
·
1 revision
Main Thread dispatcher is responsible for the synchronisation of callbacks between Main and other threads.
MainThreadDispatcher implements this interface :
publicinterfaceIThreadDispatcher{// managed Thread IDintThreadId{get;}// dispatch - adds callback delegate into dispatcher’s queue// action - delegate reference to method that should be invoked on main thread// payload - the data that should be passed to the method/callbackvoidDispatch(Delegateaction,object[]payload);}