Faulted Observable
Rocket.faulted — Function
faulted(err; scheduler::H = AsapScheduler()) where { H <: AbstractScheduler }
faulted(::Type{T}, err; scheduler::H = AsapScheduler()) where { T, H <: AbstractScheduler }Creation operator for the FaultedObservable that emits no items to the Actor and immediately sends an error notification.
Arguments
err: the particular Error to pass to the error notification.T: type of output data source, optional,Anyby defaultscheduler: optional, scheduler-like object
Examples
using Rocket
source = faulted("Error!")
subscribe!(source, logger())
;
# output
[LogActor] Error: Error!
See also: FaultedObservable, subscribe!