Skip to main content

WithInterruptible

No overview available.

def WithInterruptible(
v: bool
) - > PluginTaskExecutionContextOption

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

Parameters

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

Returns

TypeDescription
PluginTaskExecutionContextOptionA function that modifies the pluginTaskExecutionContext to set the interruptible flag.