Support for invoking futures (CLJ only) from statecharts. This support can be added by
adding it to the env's ::sc/invocation-processors
. An invoke element can specify it wants to
run a function in a future specifying the type as :future.
The src
attribute of the invoke
element must be a lambda that takes one argument (the
params of the invocation) and returns a map, which will be sent back to the invoking machine
as the data of a :done.invoke.invokeid
event.
If the invocation is cancelled (the parent state is left), then future-cancel will be called on the future.
Support for invoking futures (CLJ only) from statecharts. This support can be added by adding it to the env's `::sc/invocation-processors`. An invoke element can specify it wants to run a function in a future specifying the type as :future. The `src` attribute of the `invoke` element must be a lambda that takes one argument (the params of the invocation) and returns a map, which will be sent back to the invoking machine as the data of a `:done.invoke.invokeid` event. If the invocation is cancelled (the parent state is left), then future-cancel will be called on the future.
(new-future-processor)
Create an invocation processor that can be used to run functions in futures.
Create an invocation processor that can be used to run functions in futures.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close