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
{{ message }}
Repository navigation
Commit a354916
Browse filesBrowse the repository at this point in the historyBrowse files
Share awaited and promised types with callers that report errors
Callers passing an error node computed awaited and promised types in
their own context, so their errors belong to their node, but this also
meant they never reused a cached result. Awaiting in async functions
passes an error node, so most awaited types were computed again at
every use.
A promised type reports errors only when there is none, so a result is
shared with every caller. An awaited type can report errors alongside a
result, for a union some of whose members cannot be awaited, so only a
result whose computation reported nothing is cached. Callers with an
error node then reuse it, and compute in their own context only when
there is no such result.
PERF-PLACEHOLDER
0 commit comments