View Source Ash.ProcessHelpers (ash v3.0.0)

Helpers for working with processes and Ash actions.

Summary

Functions

Creates a task that will properly transfer the ash context to the new process

Gets all of the ash context so it can be set into a new process.

Creates a task that will properly transfer the ash context to the new process, and timeout if it takes longer than the given timeout

Functions

Creates a task that will properly transfer the ash context to the new process

Link to this function

get_context_for_transfer(opts \\ [])

View Source
@spec get_context_for_transfer(opts :: Keyword.t()) :: term()

Gets all of the ash context so it can be set into a new process.

Use transfer_context/1 in the new process to set the context.

Link to this function

task_with_timeout(fun, resource, timeout, name, tracer)

View Source

Creates a task that will properly transfer the ash context to the new process, and timeout if it takes longer than the given timeout

Link to this function

transfer_context(tracer_context, opts \\ [])

View Source
@spec transfer_context(term(), opts :: Keyword.t()) :: :ok