We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Return the first promise type in the argument list of function.
function
Example:
const std = @import("std"); const zigar = @import("zigar"); fn world(promise: zigar.function.Promise(bool)) void { promise.resolve(true); } comptime { std.debug.assert(zigar.function.PromiseArgOf(world) == zigar.function.Promise(bool)); }
Arguments:
anytype
Return value:
Promise(T)
Promise(T) | PromiseArgOf(function)
There was an error while loading. Please reload this page.