Spandex v1.3.0 Spandex.Task View Source

Provides an alternative to Task.async/1 that takes a name and makes sure that the child task’s spans are appropriately tied to the current span of the caller.

When awaiting these tasks, always use Spandex.Task.await/2, as it adds a span for awaiting, and handles the output of the spandex task appropriately.

Link to this section Summary

Link to this section Functions

Link to this function async(name, level \\ Spandex.default_level(), fun) View Source
Link to this function await(task, level \\ Spandex.default_level(), timeout \\ 5000) View Source