Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v5] Explicit spawn #3148
[v5] Explicit spawn #3148
Changes from 1 commit
29e04ae
4859fe9
abb47d4
39bc706
eb1f5eb
99424c3
d6ffbc9
b7a8751
cee5249
0a3ac9f
9fce5a9
6df48b5
0f5cfb9
5505179
91ecae1
65fe6b4
65a272b
3689875
53e560c
56b7d16
04e228a
ce9971e
3fb32fd
6cdd3cc
6d07555
8f2d906
1fe8923
a9ff1bf
6bf4ea4
69e8b80
b467f67
f0de1ac
eab43a5
ecf9853
fe16e0c
01e9c65
01ffc77
bd8e8e8
9de5049
9b48db2
e69d261
e348d67
2f6d61d
1142173
089c58b
bdaa37d
b3b6a75
eeb1210
c05bd50
6a14905
4ea8080
14a3a0b
664665a
ebff7dc
2c72cde
d0d24dd
ac21c9f
c30059d
5f9f088
575f3d3
b6bb4ae
4b7a74b
e526656
38b34e6
db1079f
a77d4e8
82fc286
6851f62
21ca13c
8b10ff9
fb76fe0
0bea428
9c45c1b
401dbd7
dd54cfe
cc80182
2f3116b
de5ee43
f8f065f
845a7dd
52719b9
31a5021
4318926
d84106d
d4bec9f
8de2ed8
f13f476
1173a61
0a91f87
652658c
a97cd80
fece479
d3274d1
dbfbae9
8655dad
359998d
93a5ada
7e2c649
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just an observation for now - it's an interesting question if we should "adapt" this to a real promise through
Promise.resolve
, some other libraries don't do this: https://codesandbox.io/s/focused-brown-kojbgv?file=/src/index.jsThe implementation in the
rxjs
can be found here: https://github.com/ReactiveX/rxjs/blob/47fa8d555754b18887baf15e22eb3dd91bf8bfea/src/internal/observable/innerFrom.ts#L84-L98There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so... in a way, this should be:
or with the latest changes:
With this design, an observable is really closer to a promise than a machine/callback (they can send events directly to the parent)