commit | bf388b2ee44f97e8b17252d0bc1cfb032c794012 | [log] [tgz] |
---|---|---|
author | Adam Rice <ricea@chromium.org> | Thu Jan 31 10:33:19 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 31 10:33:19 2019 |
tree | ab36dbde17ee1b8a23df2ef0e3a55881f3359884 | |
parent | a07da1724652216bde1d4302abbaaeb444519d5c [diff] |
Add StreamPromiseResolver StreamPromiseResolver is a garbage-collected wrapper for v8::Promise::Resolver that provides semantics matching those used for promises in the streams standard. Also add StreamScriptFunction, a subclass of ScriptFunction that avoids the round-trip through ScriptValue, and StreamThenPromise(), a shortcut for performing a Then operation where the functions are defined as StreamScriptFunctions. See design doc at https://docs.google.com/document/d/1n0IIRmJb0R-DFc2IhhJfS2-LUwl6iKSBNaR0klr3o40/edit BUG=902633 Change-Id: Ie363fb207a253a26a4bb622c50c304524d8651be Reviewed-on: https://chromium-review.googlesource.com/c/1445571 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#627888}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .