Create an empty RequestState
Create a typed empty RequestState
Create a RequestState emitting an error
The error to emit
Create a typed RequestState emitting an error
The error to emit
Create a RequestState which is always loading
Create a typed RequestState which is always loading
Create a RequestState that resolves after an amount of time
The loading duration in milliseconds
Create a RequestState that resolves with a value after an amount of time
The loading duration in milliseconds
The value to resolve with after the delay
Create a writable RequestState
Optional
onCancel: (() => void)Optional cancellation handler
Create a RequestState from a request or Value