TelegramEx.Effect (TelegramEx v1.3.0)

Copy Markdown View Source

Execution container used by effect-aware builders.

An effect carries the current handler context together with either an error or an optional result that can be converted back to a handler result with to_result/1.

Summary

Types

t()

@type t() :: %TelegramEx.Effect{ctx: map(), error: term() | nil, result: term() | nil}

Functions

map_ctx(effect, fun)

new(ctx)

then(effect, fun)

to_result(result)

wrap(effect)