usesinge_core::abort_after_cleanup_failure;usecrate::context::Context;implContext{/// Waits for all queued work in this context, or prints the error and aborts the process if the wait fails.
////// Cleanup code calls this before releasing borrowed storage that queued work may still access.
pubfnsynchronize_or_abort(&self){ifletErr(error)=self.synchronize(){abort_after_cleanup_failure("synchronize","cuda context",&error);}}}