 | IActionScheduler.ScheduleOnce Method (TimeSpan, Action) |
Schedules an action to be invoked after an delay.
The action will be wrapped so that it completes inside the currently active actor if it is called from within an actor.
RemarksNote! 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.42 (1.2.3.42)
Syntaxvoid ScheduleOnce(
TimeSpan delay,
Action action
)
abstract ScheduleOnce :
delay : TimeSpan *
action : Action -> unit
Parameters
- delay
- Type: System.TimeSpan
The time period that has to pass before the action is invoked. - action
- Type: System.Action
The action to perform.
See Also