Пример #1
0
 private static void InternalInvokeDelayed <T>(InvokeDelayedState <T> state) where T : EventArgs
 {
     ThreadPool.QueueUserWorkItem(InternalPerformDelayedInvoke <T>, state);
 }
Пример #2
0
        private static async void InternalInvokeDelayed <T>(InvokeDelayedState <T> state) where T : EventArgs
        {
            await System.Threading.Tasks.Task.Delay(state.Delay);

            state.Invoke();
        }