Equivalent of suspendCancellableCoroutine from Kotlinin Swift?
What would be the best way to convert a system callback like adding a NotificationCenter.default.addObserver
and also removing the listener on error / cancellation wrapped in an async function?