Skip to main content

resume

plugin.threadsApi.resume(threadId: string): Promise<void>

Resumes execution of a paused thread.

Reactivates a thread that was previously paused, allowing it to continue its operations from where it left off. The thread will return to an active state and continue processing.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to resume

Returns

Promise<void> — A promise that resolves when the thread has been resumed

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.threadsApi.resume('threadId');
console.log(result);