JavaScript | PHP
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.