Skip to content

Instantly share code, notes, and snippets.

@ghengeveld
Created September 25, 2019 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghengeveld/63c203b602e691374e08663ea7d11046 to your computer and use it in GitHub Desktop.
Save ghengeveld/63c203b602e691374e08663ea7d11046 to your computer and use it in GitHub Desktop.
Nact API
start(systemName | extension, ...extensions)
stop(actorRef) 
query(actor,msg, timeoutInMs)
dispatch(actor, msg, sender)
spawn(parent, f, name,  properties)
spawnStateless(parent, f, name, properties)
spawnPersistent(parent, f, persistentKey, name, properties)
persistentQuery(parent, f, key, properties) : Promise<Result>

With properties taking in { shutdownAfter, onCrash, initialState, initialStateFunc }

Persistent actor's properties takes in addition: { snapshotEvery, snapshotEncoder, snapshotDecoder, encoder, decoder }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment