Supply result type.
Indicates whether this supply is cut off already.
null
initially. Set once supply cut off. Once set, nothing will be supplied anymore.
Cuts off this supply.
When called for the first time, all registered supply receivers informed with the given reason
, and isOff
property value becomes equal to it. Calling this method for the second time has no effect.
After this method call nothing would be supplied anymore.
A reason indicating why the supply has been cut off, and when.
this
instance.
Makes this supply depend on another supplier.
Once the supplier
cuts off the supply, this supply will be cut off with the same
reason.
Calling this method has the same effect as calling supplier.alsoOff(this)
.
A supplier to make this supply depend on.
this
instance.
Cuts off this supply with arbitrary reason.
Calling this method is the same as calling this.cutOff(SupplyIsOff.becauseOf(reason))
.
Rest
...reason: ReasonArgs<TResult, TReason>this
instance.
Creates required supply this one depends on.
Optional
required: undefinedNew required supply instance.
Makes this supplier depend on another supplier.
In contrast to needs method, this one returns required supplier.
Type of required supplier.
Supplier to make this supply depend on.
Required supplier.
Creates required supply this one depends on.
If required supplier specified, makes this supply depend on it.
In contrast to needs method, this one returns required supplier.
Type of required supplier.
Optional supplier to make this supply depend on.
Required supplier.
Generated using TypeDoc
Receiving side of supply.
It is informed on supply cut off.