Closed danielhenrymantilla closed 2 years ago
This adds a AdhocToReprNapi(|js_env| Ok({ … })) convenience constructor, much alike iter::from_fn for iterators, to easily write ad-hoc ReprNapi implementors, especially useful for JsPromises that need to perform some js-specific post-cleanup logic.
AdhocToReprNapi(|js_env| Ok({ … }))
iter::from_fn
ReprNapi
JsPromise
This adds a
AdhocToReprNapi(|js_env| Ok({ … }))
convenience constructor, much alikeiter::from_fn
for iterators, to easily write ad-hocReprNapi
implementors, especially useful forJsPromise
s that need to perform some js-specific post-cleanup logic.