Bedrock.Internal.GenServer.Replies (bedrock v0.5.2)

View Source

Utilities for GenServer reply tuple construction.

Summary

Functions

noreply(t, opts \\ [])

@spec noreply(
  state,
  opts :: [continue: continue, timeout: timeout()]
) :: {:noreply, state} | {:noreply, state, {:continue, continue} | timeout()}
when state: term(), continue: term()

reply(t, result)

@spec reply(state, result) :: {:reply, result, state}
when state: term(), result: term()

reply(t, result, list)

@spec reply(state, result, [{:continue, continue}]) ::
  {:reply, result, state, {:continue, continue}}
when state: term(), result: term(), continue: term()

stop(t, reason)

@spec stop(state, reason) :: {:stop, reason, state} when state: term(), reason: term()