| SchedulerExtensionsScheduleTellOnce Method |
Schedules to send a message once after a specified period of time.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static void ScheduleTellOnce(
this ITellScheduler scheduler,
int millisecondsDelay,
ICanTell receiver,
Object message,
IActorRef sender,
ICancelable cancelable = null
)
[<ExtensionAttribute>]
static member ScheduleTellOnce :
scheduler : ITellScheduler *
millisecondsDelay : int *
receiver : ICanTell *
message : Object *
sender : IActorRef *
?cancelable : ICancelable
(* Defaults:
let _cancelable = defaultArg cancelable null
*)
-> unit
Parameters
- scheduler
- Type: Akka.ActorITellScheduler
The scheduler - millisecondsDelay
- Type: SystemInt32
The time in milliseconds that has to pass before the message is sent. - receiver
- Type: Akka.ActorICanTell
The receiver. - message
- Type: SystemObject
The message. - sender
- Type: Akka.ActorIActorRef
The sender. - cancelable (Optional)
- Type: Akka.ActorICancelable
OPTIONAL. An ICancelable that can be used to cancel sending of the message. Note that once the message has been sent, it cannot be canceled.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ITellScheduler. 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