-
-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Task async await check when evaluate await expression (#1882)
* Fix event loop using concurrent queue * Add continuation task fix * Enhance continuation task * Remove wait in event loop --------- Co-authored-by: Trung Tran <[email protected]> Co-authored-by: Ngoc.TranThi <[email protected]>
- Loading branch information
1 parent
e46c0b2
commit 4e82c67
Showing
6 changed files
with
86 additions
and
29 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
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
using System.Collections.Concurrent; | ||
|
||
namespace Jint.Runtime | ||
{ | ||
internal sealed record EventLoop | ||
{ | ||
internal readonly Queue<Action> Events = new(); | ||
internal readonly ConcurrentQueue<Action> Events = new(); | ||
} | ||
} |