Akka.Actor.DedicatedThreadScheduler.InternalScheduleOnce C# (CSharp) Метод

InternalScheduleOnce() приватный Метод

private InternalScheduleOnce ( System.TimeSpan initialDelay, System.Action action, CancellationToken token ) : void
initialDelay System.TimeSpan
action System.Action
token System.Threading.CancellationToken
Результат void
        private void InternalScheduleOnce(TimeSpan initialDelay, Action action, CancellationToken token)
        {
            Action executeAction = () =>
            {
                if (token.IsCancellationRequested)
                    return;

                try
                {
                    action();
                }
                catch (OperationCanceledException) { }
                catch (Exception x)
                {
                    _log.Error(x, "DedicatedThreadScheduler failed to execute action");
                }                
            };
            AddWork(initialDelay, executeAction, token);

        }

Same methods

DedicatedThreadScheduler::InternalScheduleOnce ( System.TimeSpan delay, System.Action action, ICancelable cancelable ) : void