| SchedulerExtensionsScheduleOnceCancelable Method (IActionScheduler, Int32, Action) |
Schedules an action to be invoked after an delay.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static ICancelable ScheduleOnceCancelable(
this IActionScheduler scheduler,
int millisecondsDelay,
Action action
)
[<ExtensionAttribute>]
static member ScheduleOnceCancelable :
scheduler : IActionScheduler *
millisecondsDelay : int *
action : Action -> ICancelable
Parameters
- scheduler
- Type: Akka.ActorIActionScheduler
The scheduler - millisecondsDelay
- Type: SystemInt32
The time in milliseconds that has to pass before the action is invoked. - action
- Type: SystemAction
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