 | SchedulerExtensions.ScheduleRepeatedlyCancelable Method (IActionScheduler, TimeSpan, TimeSpan, Action) |
Schedules an action to be invoked after an initial delay and then repeatedly.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static ICancelable ScheduleRepeatedlyCancelable(
this IActionScheduler scheduler,
TimeSpan initialDelay,
TimeSpan interval,
Action action
)
[<ExtensionAttribute>]
static member ScheduleRepeatedlyCancelable :
scheduler : IActionScheduler *
initialDelay : TimeSpan *
interval : TimeSpan *
action : Action -> ICancelable
Parameters
- scheduler
- Type: Akka.Actor.IActionScheduler
The scheduler - initialDelay
- Type: System.TimeSpan
The time period that has to pass before first invocation. - interval
- Type: System.TimeSpan
The interval, i.e. the time period that has to pass between the action is invoked. - action
- Type: System.Action
The action to perform.
Return Value
Type:
ICancelableA cancelable that can be used to cancel the action from being executed
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IActionScheduler. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also