private static void InternalInvokeDelayed <T>(InvokeDelayedState <T> state) where T : EventArgs { ThreadPool.QueueUserWorkItem(InternalPerformDelayedInvoke <T>, state); }
private static async void InternalInvokeDelayed <T>(InvokeDelayedState <T> state) where T : EventArgs { await System.Threading.Tasks.Task.Delay(state.Delay); state.Invoke(); }