Skip to main content
function callWithMetadata
import { callWithMetadata } from "https://deno.land/x/caller_metadata@v0.0.3/src/main.ts";

Injects meta data to the stack trace, which can be accessed within the function. Calls the function (async) with paramters.

Type Parameters

args extends any[]
returns extends Awaited<any>

Parameters

meta: any

object that can be accessed within the function by calling getMeta()

func: (...args: args) => returns

value of 'this' inside the function

optional
args: args

the function to call

optional
ctx: any

function arguments array

Returns

return value of the function call