Mojo function
get_safe_task_id
get_safe_task_id(ctx: DeviceContextPtr) -> OptionalReg[Int]
Safely extract task_id from DeviceContextPtr, returning None if null/invalid.
Returns:
get_safe_task_id(ctx: DeviceContext) -> OptionalReg[Int]
Safely extract task_id from DeviceContext, returning None if null/invalid.
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!