Closed hsorbo closed 2 months ago
Cancellable.combine allows for combining cancellations. This can be useful in scenarios like combining timeouts or combining timeout with user cancellation.
Cancellable.combine
function doSomething(cancellable) { const connectTimeout = cancellable.combine(Cancellable.withTimeout(2000)); const appservice = await device.openService('xpc:com.apple.coredevice.appservice', connectTimeout); }
Cancellable.combine
allows for combining cancellations. This can be useful in scenarios like combining timeouts or combining timeout with user cancellation.