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_cast(, , state)

Callback implementation for Spell.Role.handle_cast/3

handle_message(result, peer, state)

Callback implementation for Spell.Role.handle_message/3

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

TODO

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_cast(, , state)

Callback implementation for Spell.Role.handle_cast/3.

Source
handle_message(result, peer, state)

Callback implementation for Spell.Role.handle_message/3.

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