Skip to content

Commit

Permalink
Merge branch 'dev' into brophdawg11/abortsignal
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Aug 25, 2022
2 parents 3ba6bef + 02db36c commit 70ca93c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions decisions/0004-streaming-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ We decided _not_ to support naked objects due to the ambiguity that would be int
// been introduced had we chosen to support naked objects :)

// This would NOT be streamed
function loader() {
function exampleLoader1() {
return Promise.resolve(5);
}

// This WOULD be streamed
function loader() {
function exampleLoader2() {
return {
value: Promise.resolve(5);
value: Promise.resolve(5),
};
}

// This would NOT be streamed
function loader() {
function exampleLoader3() {
return {
value: {
nested: Promise.resolve(5);
}
nested: Promise.resolve(5),
},
};
}
```
Expand Down

0 comments on commit 70ca93c

Please sign in to comment.