Search Results for

    Show / Hide Table of Contents

    Interface IActionScheduler

    This interface defines a scheduler that is able to execute actions on a set schedule.

    Inherited Members
    IRunnableScheduler.ScheduleOnce(TimeSpan, IRunnable, ICancelable)
    IRunnableScheduler.ScheduleOnce(TimeSpan, IRunnable)
    IRunnableScheduler.ScheduleRepeatedly(TimeSpan, TimeSpan, IRunnable, ICancelable)
    IRunnableScheduler.ScheduleRepeatedly(TimeSpan, TimeSpan, IRunnable)
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public interface IActionScheduler : IRunnableScheduler

    Methods

    | Edit this page View Source

    ScheduleOnce(TimeSpan, Action)

    Schedules an action to be invoked after a delay. The action is wrapped so that it completes inside the currently active actor if it is called from within an actor. Note! It's considered bad practice to use concurrency inside actors, and very easy to get wrong so usage is discouraged.

    Declaration
    void ScheduleOnce(TimeSpan delay, Action action)
    Parameters
    Type Name Description
    TimeSpan delay

    The time period that has to pass before the action is invoked.

    Action action

    The action that is being scheduled.

    | Edit this page View Source

    ScheduleOnce(TimeSpan, Action, ICancelable)

    Schedules an action to be invoked after a delay. The action is wrapped so that it completes inside the currently active actor if it is called from within an actor. Note! It's considered bad practice to use concurrency inside actors, and very easy to get wrong so usage is discouraged.

    Declaration
    void ScheduleOnce(TimeSpan delay, Action action, ICancelable cancelable)
    Parameters
    Type Name Description
    TimeSpan delay

    The time period that has to pass before the action is invoked.

    Action action

    The action that is being scheduled.

    ICancelable cancelable

    A cancelable used to cancel the action from being executed.

    | Edit this page View Source

    ScheduleRepeatedly(TimeSpan, TimeSpan, Action)

    Schedules an action to be invoked after an initial delay and then repeatedly. The action is wrapped so that it completes inside the currently active actor if it is called from within an actor. Note! It's considered bad practice to use concurrency inside actors, and very easy to get wrong so usage is discouraged.

    Declaration
    void ScheduleRepeatedly(TimeSpan initialDelay, TimeSpan interval, Action action)
    Parameters
    Type Name Description
    TimeSpan initialDelay

    The time period that has to pass before first invocation of the action.

    TimeSpan interval

    The time period that has to pass between each invocation of the action.

    Action action

    The action that is being scheduled.

    | Edit this page View Source

    ScheduleRepeatedly(TimeSpan, TimeSpan, Action, ICancelable)

    Schedules an action to be invoked after an initial delay and then repeatedly. The action is wrapped so that it completes inside the currently active actor if it is called from within an actor. Note! It's considered bad practice to use concurrency inside actors, and very easy to get wrong so usage is discouraged.

    Declaration
    void ScheduleRepeatedly(TimeSpan initialDelay, TimeSpan interval, Action action, ICancelable cancelable)
    Parameters
    Type Name Description
    TimeSpan initialDelay

    The time period that has to pass before first invocation of the action.

    TimeSpan interval

    The time period that has to pass between each invocation of the action.

    Action action

    The action that is being scheduled.

    ICancelable cancelable

    A cancelable used to cancel the action from being executed.

    Extension Methods

    SchedulerExtensions.ScheduleOnce(IActionScheduler, int, Action, ICancelable)
    SchedulerExtensions.ScheduleOnceCancelable(IActionScheduler, int, Action)
    SchedulerExtensions.ScheduleOnceCancelable(IActionScheduler, TimeSpan, Action)
    SchedulerExtensions.ScheduleRepeatedly(IActionScheduler, int, int, Action, ICancelable)
    SchedulerExtensions.ScheduleRepeatedlyCancelable(IActionScheduler, int, int, Action)
    SchedulerExtensions.ScheduleRepeatedlyCancelable(IActionScheduler, TimeSpan, TimeSpan, Action)
    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET