Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/deps.ts>WorkflowContext#callActivity

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method WorkflowContext.prototype.callActivity
Re-export
import { WorkflowContext } from "https://deno.land/x/live@1.53.6/deps.ts";

Executes the activity for the given context and args.

Type Parameters

optional
TArgs extends Arg = Arg
optional
TResult = unknown

Parameters

activity: Activity<TArgs, TResult>

the activity that should be executed

...input: [...TArgs]

the activity args (optionally)

Returns

ScheduleActivityCommand<TArgs, TResult>