Header menu logo FCQRS

ObservingScheduler Type

Scheduler wrapper that exposes enqueue/cancel events with optional names

Constructors

Constructor Description

ObservingScheduler(config, log)

Full Usage: ObservingScheduler(config, log)

Parameters:
Returns: ObservingScheduler
config : Config
log : ILoggingAdapter
Returns: ObservingScheduler

Instance members

Instance member Description

this.Advance

Full Usage: this.Advance

Parameters:

Drive the virtual clock forward

d : TimeSpan

this.AdvanceTo

Full Usage: this.AdvanceTo

Parameters:
deadline : DateTimeOffset

this.Cancel

Full Usage: this.Cancel

Parameters:

Cancel via wrapper with name

cancelable : ICancelable
name : string option

this.OnCancelled

Full Usage: this.OnCancelled

Returns: IEvent<string option * TimeSpan * (unit -> unit)>

Fired whenever a ScheduledItem is cancelled

Returns: IEvent<string option * TimeSpan * (unit -> unit)>

this.OnEnqueued

Full Usage: this.OnEnqueued

Returns: IEvent<string option * TimeSpan * (unit -> unit)>

Fired whenever a ScheduledItem is enqueued

Returns: IEvent<string option * TimeSpan * (unit -> unit)>

this.ScheduleOnce

Full Usage: this.ScheduleOnce

Parameters:
    delay : TimeSpan
    action : unit -> unit

Returns: ICancelable

Fallback ScheduleOnce without name

delay : TimeSpan
action : unit -> unit
Returns: ICancelable

this.ScheduleOnce

Full Usage: this.ScheduleOnce

Parameters:
    name : string option
    delay : TimeSpan
    action : unit -> unit

Returns: ICancelable

Schedule a one-time action with optional name

name : string option
delay : TimeSpan
action : unit -> unit
Returns: ICancelable

this.ScheduleRepeatedly

Full Usage: this.ScheduleRepeatedly

Parameters:
Returns: ICancelable

Fallback ScheduleRepeatedly without name

initialDelay : TimeSpan
interval : TimeSpan
action : unit -> unit
Returns: ICancelable

this.ScheduleRepeatedly

Full Usage: this.ScheduleRepeatedly

Parameters:
    name : string option
    initialDelay : TimeSpan
    interval : TimeSpan
    action : unit -> unit

Returns: ICancelable

Schedule a repeated action with optional name

name : string option
initialDelay : TimeSpan
interval : TimeSpan
action : unit -> unit
Returns: ICancelable

this.ScheduleTellOnce

Full Usage: this.ScheduleTellOnce

Parameters:
Returns: ICancelable

Fallback ScheduleTellOnce without name

delay : TimeSpan
receiver : ICanTell
message : obj
sender : IActorRef
Returns: ICancelable

this.ScheduleTellOnce

Full Usage: this.ScheduleTellOnce

Parameters:
Returns: ICancelable

Schedule a one-time Tell with optional name

name : string option
delay : TimeSpan
receiver : ICanTell
message : obj
sender : IActorRef
Returns: ICancelable

this.ScheduleTellRepeatedly

Full Usage: this.ScheduleTellRepeatedly

Parameters:
Returns: ICancelable

Fallback ScheduleTellRepeatedly without name

initialDelay : TimeSpan
interval : TimeSpan
receiver : ICanTell
message : obj
sender : IActorRef
Returns: ICancelable

this.ScheduleTellRepeatedly

Full Usage: this.ScheduleTellRepeatedly

Parameters:
Returns: ICancelable

Schedule repeated Tell with optional name

name : string option
initialDelay : TimeSpan
interval : TimeSpan
receiver : ICanTell
message : obj
sender : IActorRef
Returns: ICancelable

Type something to start searching.