Search Results for

    Show / Hide Table of Contents

    Interface IRunnableScheduler

    INTERNAL API

    Convenience API for working with IRunnable

    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public interface IRunnableScheduler

    Methods

    | Edit this page View Source

    ScheduleOnce(TimeSpan, IRunnable)

    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, IRunnable action)
    Parameters
    Type Name Description
    TimeSpan delay

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

    IRunnable action

    The action that is being scheduled.

    | Edit this page View Source

    ScheduleOnce(TimeSpan, IRunnable, 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, IRunnable action, ICancelable cancelable)
    Parameters
    Type Name Description
    TimeSpan delay

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

    IRunnable 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, IRunnable)

    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, IRunnable 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.

    IRunnable action

    The action that is being scheduled.

    | Edit this page View Source

    ScheduleRepeatedly(TimeSpan, TimeSpan, IRunnable, 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, IRunnable 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.

    IRunnable action

    The action that is being scheduled.

    ICancelable cancelable

    A cancelable used to cancel the action from being executed.

    Extension Methods

    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