View Source SpawnSdk.Defact (spawn_sdk v2.0.0-RC3)

Define actions like a Elixir functions

Internal :defact_exports metadata saved as

[ {action_name, %{timer: 10_000}}, {action_name2, %{timer: nil}} ]

Summary

Functions

action(action_name, block_fn)

(macro)

action(action_name, opts, block_fn)

(macro)

defact(call, list)

(macro)

init(block_fn)

(macro)