pub fn async_instant(
    id: Id,
    context: &TraceCategoryContext,
    name: &'static CStr,
    args: &[Arg<'_>]
)
Expand description

Writes an async instant event with the specified id.

Asynchronous events describe work that is happening asynchronously and that may span multiple threads. Asynchronous events do not nest. The id serves to correlate the progress of distinct asynchronous operations that share the same category and name within the same process.

0 to 15 arguments can be associated with the event, each of which is used to annotate the asynchronous operation with additional information. The arguments provided to matching async begin, async instant, and async end events are combined together in the trace; it is not necessary to repeat them.