| SchedulerExtensionsScheduleRepeatedly Method |
Schedules an action to be invoked after an initial delay and then repeatedly.
The action will be wrapped so that it completes inside the currently active actor if it is called from within an actor
Remarks Note! It's considered bad practice to use concurrency inside actors, and very easy to get wrong so usage is discouraged.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static void ScheduleRepeatedly(
this IActionScheduler scheduler,
int initialMillisecondsDelay,
int millisecondsInterval,
Action action,
ICancelable cancelable = null
)
[<ExtensionAttribute>]
static member ScheduleRepeatedly :
scheduler : IActionScheduler *
initialMillisecondsDelay : int *
millisecondsInterval : int *
action : Action *
?cancelable : ICancelable
(* Defaults:
let _cancelable = defaultArg cancelable null
*)
-> unit
Parameters
- scheduler
- Type: Akka.ActorIActionScheduler
The scheduler - initialMillisecondsDelay
- Type: SystemInt32
The time in milliseconds that has to pass before first invocation. - millisecondsInterval
- Type: SystemInt32
The interval, i.e. the time in milliseconds that has to pass before the action is invoked again. - action
- Type: SystemAction
The action to perform. - cancelable (Optional)
- Type: Akka.ActorICancelable
OPTIONAL. A cancelable that can be used to cancel the action from being executed. Defaults to null
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