Exemple #1
0
        public async Task InvokeAsync(Action action)
        {
            var invokeAction = new InvokeAction(action);

            _actionQ.Post(invokeAction);
            await invokeAction.InvokedFlag.ReceiveAsync();
        }
Exemple #2
0
        public void Invoke(Action action)
        {
            var invokeAction = new InvokeAction(action);

            _actionQ.Post(invokeAction);
            invokeAction.InvokedFlag.Receive();
        }