Dart JS Interop 0.6.0 and JS Promises - resolving
问题 It does not appear there is a clear interception of JS Promises by the Interop or dart2JS. ServiceWorkerContainer swContain = window.navigator.serworker; swContain.register(workerScriptURI,scope).then((ServiceWorkerRegistration rego){ /// Here confirm scope and the state, handle and unregister if required. )}; Yet it appears to be no way of pulling this off without wrapping the promise and a completer. When I then I can not get to work in a dependable fashion. Long post here: https://groups