Commit 253ce61
authored
♻️ simplify spawn() by delegating to scope.run (#1078)
We're going to end up wrapping unified APIs around most Effection
functions so that they can be decorated with middleware. As such, there
is no need to have separate code paths for Scope.run() and
Scope.spawn() since they end up calling the same thing under the hood.
This has `spawn()`` delegate to `Scope.run()` so that the apis can be
unified and wrapped as one. In other words, wraping `Scope.run()` is
the same as wrapping `spawn()`.1 parent d9788cc commit 253ce61
1 file changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 31 | + | |
40 | 32 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
47 | 36 | | |
48 | 37 | | |
49 | 38 | | |
0 commit comments