Spell.Role.Caller

The Spell.Role.Caller module implements the caller behaviour.

Source

Summary

call(peer, procedure, options \\ [])

Using peer synchronously call procedure with options

cast_call(peer, procedure, options \\ [])

Using peer asynchronously call procedure with options

get_features(options)

Callback implementation for Spell.Role.get_features/1

handle_call(arg1, arg2, peer, state)

The handle_call callback is used to send CALL messages

handle_message(result, peer, state)

Handle RESULT messages

init(peer_options, options)

Callback implementation for Spell.Role.init/2

on_close(peer, state)

Callback implementation for Spell.Role.on_close/2

on_open(peer, state)

Callback implementation for Spell.Role.on_open/2

receive_result(peer, call_id)

Block to receive from peer result of call_id

Functions

call(peer, procedure, options \\ [])

Specs:

Using peer synchronously call procedure with options.

Options

  • :details :: map
  • :arguments :: list
  • :arguments_kw :: map
Source
cast_call(peer, procedure, options \\ [])

Specs:

Using peer asynchronously call procedure with options.

Options

See call/3.

Source
get_features(options)

Callback implementation for Spell.Role.get_features/1.

Source
handle_call(arg1, arg2, peer, state)

The handle_call callback is used to send CALL messages.

Source
handle_message(result, peer, state)

Handle RESULT messages.

Source
init(peer_options, options)

Callback implementation for Spell.Role.init/2.

Source
on_close(peer, state)

Callback implementation for Spell.Role.on_close/2.

Source
on_open(peer, state)

Callback implementation for Spell.Role.on_open/2.

Source
receive_result(peer, call_id)

Block to receive from peer result of call_id.

Source