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

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

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