You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The One-time "events" section describes the use of Promises for one-time events. Is it acceptable to use for events that may never occur? For example, disconnection of a connection with an indefinite lifetime where reconnection isn't possible (e.g. a connection over a network or to a GPU or other hardware device).
I've gotten guidance from several sources in the past that this is an acceptable use of Promises, hence we used it in WebGPU, but it would be good to have guidance in this document. I'm not aware of usages of this pattern outside of WebGPU GPUDevice.lost, only of examples like ServiceWorkerContainer.ready. Are there any?
The text was updated successfully, but these errors were encountered:
The One-time "events" section describes the use of Promises for one-time events. Is it acceptable to use for events that may never occur? For example, disconnection of a connection with an indefinite lifetime where reconnection isn't possible (e.g. a connection over a network or to a GPU or other hardware device).
I've gotten guidance from several sources in the past that this is an acceptable use of Promises, hence we used it in WebGPU, but it would be good to have guidance in this document. I'm not aware of usages of this pattern outside of WebGPU GPUDevice.lost, only of examples like
ServiceWorkerContainer.ready
. Are there any?The text was updated successfully, but these errors were encountered: