Mojo struct
TaskGroupContext
@register_passable(trivial)
struct TaskGroupContext
Context structure for task group operations.
This structure holds a callback function and a pointer to a TaskGroup, allowing asynchronous operations to interact with their parent TaskGroup when they complete.
Aliases
tg_callback_fn_type = fn(mut TaskGroup) -> None
: Type definition for callback functions that operate on TaskGroups.
Fields
- callback (
fn(mut TaskGroup) -> None
): Callback function to be invoked on the TaskGroup when an operation completes. - task_group (
UnsafePointer[TaskGroup]
): Pointer to the TaskGroup that owns or is associated with this context.
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!