| SchedulerExtensionsScheduleTellRepeatedlyCancelable Method (IScheduler, Int32, Int32, ICanTell, Object, IActorRef) |
Schedules to send a message repeatedly. The first message will be sent after the specified initial delay and there after at the rate specified.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static ICancelable ScheduleTellRepeatedlyCancelable(
this IScheduler scheduler,
int initialMillisecondsDelay,
int millisecondsInterval,
ICanTell receiver,
Object message,
IActorRef sender
)
[<ExtensionAttribute>]
static member ScheduleTellRepeatedlyCancelable :
scheduler : IScheduler *
initialMillisecondsDelay : int *
millisecondsInterval : int *
receiver : ICanTell *
message : Object *
sender : IActorRef -> ICancelable
Parameters
- scheduler
- Type: Akka.ActorIScheduler
The scheduler - initialMillisecondsDelay
- Type: SystemInt32
The time in milliseconds that has to pass before the first message is sent. - millisecondsInterval
- Type: SystemInt32
The interval, i.e. the time in milliseconds that has to pass between messages are sent. - receiver
- Type: Akka.ActorICanTell
The receiver. - message
- Type: SystemObject
The message. - sender
- Type: Akka.ActorIActorRef
The sender.
Return Value
Type:
ICancelableAn
ICancelable that can be used to cancel sending of the message. Once the message already has been sent, it cannot be cancelled.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IScheduler. 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