Dowser (Dowser.Client v0.1.1)

View Source

Top-level convenience helpers shared across the Dowser family.

Summary

Functions

Unwraps an {:ok, value} / {:error, exception} result, as returned by Dowser.Client.request/4.

Functions

unwrap(arg)

@spec unwrap({:ok, value} | {:error, Exception.t()}) :: value when value: term()

Unwraps an {:ok, value} / {:error, exception} result, as returned by Dowser.Client.request/4.

Returns value directly, or raises exception.