public async Task InvokeAsync(Action action) { var invokeAction = new InvokeAction(action); _actionQ.Post(invokeAction); await invokeAction.InvokedFlag.ReceiveAsync(); }
public void Invoke(Action action) { var invokeAction = new InvokeAction(action); _actionQ.Post(invokeAction); invokeAction.InvokedFlag.Receive(); }