Seven.Utils.Events (Seven Otters v0.8.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

create_event(type, payload)

View Source

Specs

create_event(bitstring(), map()) :: map()
Link to this function

set_correlation_id(events, correlation_id)

View Source

Specs

set_correlation_id([Seven.Otters.Event] | Seven.Otters.Event, bitstring()) :: [
  Seven.Otters.Event
]
Link to this function

set_process_id(events, process_id)

View Source
Link to this function

set_request_id(events, request_id)

View Source

Specs

set_request_id([Seven.Otters.Event], bitstring()) :: [Seven.Otters.Event]

Specs

trigger([Seven.Otters.Event]) :: :ok
Link to this function

wait_for_event(request_id, event_type)

View Source

Specs

wait_for_event(bitstring(), bitstring()) :: Seven.Otters.Event | nil