fn runDetached(self: *Loop, alloc: mem.Allocator, comptime func: anytype, args: anytype) error{OutOfMemory}!void

Runs the provided function asynchronously. The function’s frame is allocated with allocator and freed when the function returns. func must return void and it can be an async function. Yields to the event loop, running the function on the next tick.

Parameters

self: *Loop,
alloc: mem.Allocator,
func: anytype,
args: anytype,