-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1143f3
commit 8a38d8b
Showing
12 changed files
with
808 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"async-call-rpc": minor | ||
--- | ||
|
||
add signal and forceSignal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
__tests__/__file_snapshots__/async-call-client-abort-signal.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# Timeline | ||
|
||
## T=0 Message: client sent | ||
|
||
```php | ||
Object { | ||
"id": 0, | ||
"jsonrpc": "2.0", | ||
"method": "delay", | ||
"params": Array [ | ||
200, | ||
"first", | ||
], | ||
} | ||
``` | ||
|
||
## T=1 Message: client sent | ||
|
||
```php | ||
Object { | ||
"id": 1, | ||
"jsonrpc": "2.0", | ||
"method": "delay", | ||
"params": Array [ | ||
400, | ||
"second", | ||
], | ||
} | ||
``` | ||
|
||
## T=2 Message: server received | ||
|
||
```php | ||
Object { | ||
"id": 0, | ||
"jsonrpc": "2.0", | ||
"method": "delay", | ||
"params": Array [ | ||
200, | ||
"first", | ||
], | ||
} | ||
``` | ||
|
||
## T=3 Log: server/log | ||
|
||
```php | ||
Array [ | ||
"rpc.%cdelay%c(%o, %o%c) | ||
%o %c@0", | ||
"color:#d2c057", | ||
"", | ||
200, | ||
"first", | ||
"", | ||
Promise {}, | ||
"color:gray;font-style:italic;", | ||
] | ||
``` | ||
|
||
## T=4 Message: server received | ||
|
||
```php | ||
Object { | ||
"id": 1, | ||
"jsonrpc": "2.0", | ||
"method": "delay", | ||
"params": Array [ | ||
400, | ||
"second", | ||
], | ||
} | ||
``` | ||
|
||
## T=5 Log: server/log | ||
|
||
```php | ||
Array [ | ||
"rpc.%cdelay%c(%o, %o%c) | ||
%o %c@1", | ||
"color:#d2c057", | ||
"", | ||
400, | ||
"second", | ||
"", | ||
Promise {}, | ||
"color:gray;font-style:italic;", | ||
] | ||
``` | ||
|
||
## T=6 Log: testRunner/log | ||
|
||
```php | ||
Array [ | ||
"soft abort", | ||
] | ||
``` | ||
|
||
## T=7 Message: server => client | ||
|
||
```php | ||
Object { | ||
"id": 0, | ||
"jsonrpc": "2.0", | ||
"result": undefined, | ||
} | ||
``` | ||
|
||
## T=8 Log: testRunner/log | ||
|
||
```php | ||
Array [ | ||
"hard abort", | ||
] | ||
``` | ||
|
||
## T=9 Message: server => client | ||
|
||
```php | ||
Object { | ||
"id": 1, | ||
"jsonrpc": "2.0", | ||
"result": undefined, | ||
} | ||
``` |
Oops, something went wrong.