Skip to main content

WithInterruptible

No overview available.

def WithInterruptible(
v: bool
) - > PluginTaskExecutionContextOption

Configures a PluginTaskExecutionContextOption to set the interruptible flag for a plugin task's execution metadata. This allows callers to specify whether a task can be interrupted.

Parameters

NameTypeDescription
vboolThe boolean value indicating whether the task should be interruptible. Set to 'true' to allow interruption, 'false' otherwise.

Returns

TypeDescription
PluginTaskExecutionContextOptionA function that modifies a pluginTaskExecutionContext to set its interruptible metadata.