Optional
onCancel: (() => void)Readonly
cancelledEmits true when the RequestState has been cancelled by a consumer, otherwise emits false
Readonly
cancelled$Emits true when the RequestState has been cancelled by a consumer
Readonly
errorEmits the error if one is thrown by the request. Otherwise undefined
Readonly
failedEmits true if the request failed
Readonly
loadingEmits true when the request is running
Readonly
request$The underlying request
Readonly
resultThe result of the request, or undefined when unresolved
Readonly
result$The result of the request
Create a Readonly version of the RequestState
Set the RequestState to a completed state with a given value
The value to emit
Subscribe to the underlying request Observable
A manually populated RequestState