NewRelic.Instrumented.Task (New Relic Elixir Agent v1.25.3) View Source

Provides a pre-instrumented convienince module to connect non-linked Task processes to the Transaction that called them.

You may call these functions directly, or alias the module and continue to use Task as normal.

Example usage:

alias NewRelic.Instrumented.Task

Task.async_stream([1,2], fn n -> do_work(n) end)

Link to this section Summary

Link to this section Functions

See Task.async/1.

Link to this function

async(module, function_name, args)

View Source

See Task.async/3.

Link to this function

async_stream(enumerable, fun, options \\ [])

View Source
Link to this function

async_stream(enumerable, module, function_name, args, options \\ [])

View Source
Link to this function

await(task, timeout \\ 5000)

View Source

See Task.await/2.

Link to this function

await_many(tasks, timeout \\ 5000)

View Source

See Task.await_many/2.

See Task.child_spec/1.

Link to this function

shutdown(task, timeout \\ 5000)

View Source

See Task.shutdown/2.

Link to this function

start(module, function_name, args)

View Source

See Task.start_link/1.

Link to this function

start_link(module, function_name, args)

View Source

See Task.start_link/3.

Link to this function

yield(task, timeout \\ 5000)

View Source

See Task.yield/2.

Link to this function

yield_many(task, timeout \\ 5000)

View Source

See Task.yield_many/2.