pub async fn settled(promise: Promise) -> Result<JsValue>
Settle promise as an I/O answer.
promise
Whatever the browser rejected it with, read as faulted reads one.
faulted