Class: CompleteAsyncError
common.CompleteAsyncError
Throw this error from an Activity in order to make the Worker forget about this Activity.
The Activity can then be completed asynchronously (from anywhereβusually outside the Worker) using the Client's activity handle.
Example
import { CompleteAsyncError } from '@temporalio/activity';
export async function myActivity(): Promise<never> {
// ...
throw new CompleteAsyncError();
}
Hierarchyβ
-
Errorβ³
CompleteAsyncError
Constructorsβ
constructorβ
β’ new CompleteAsyncError(message?): CompleteAsyncError