Readonly
beforeActor that must be registered in the bus before this actor.
Readonly
busThe bus this actor subscribes to.
Private
Readonly
fetchReadonly
nameThe name for this actor.
{<rdf:subject>}
Private
Readonly
userProtected
getOptional
data: (() => any)Protected
logOptional
data: (() => any)Protected
logOptional
data: (() => any)Protected
logOptional
data: (() => any)Protected
logOptional
data: (() => any)Protected
logOptional
data: (() => any)Protected
logOptional
data: (() => any)Run the given action on this actor.
In most cases, this method should not be called directly. Instead, #runObservable should be called.
The action to run.
A promise that resolves to the run result.
Run the given action on this actor AND invokes the Bus#onRun method.
The action to run.
A promise that resolves to the run result.
Check if this actor can run the given action, without actually running it.
The action to test.
A promise that resolves to the test result.
Static
createStatic
getGet the logger from the given context.
An optional context.
The logger or undefined.
Private
Static
getPerform a fetch request, taking care of retries
Optional
init: RequestInitUrl or RequestInfo to pass to fetchFn
RequestInit to pass to fetch function
Maximum retries after which to abort
Time in milliseconds to wait between retries
a fetch Response
object
Static
headersStatic
toStatic
to
A node-fetch actor that listens on the 'init' bus.
It will call
fetch
with either action.input or action.url.