-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Channel constructor keyword argument to
@spawn
new Task in para…
…llel (#32872) Add a parameter to the Channel constructor to allow the Tasks it creates to be scheduled on multiple threads. Examples: ```julia # Spawn a Task to handle each input request ch = Channel{String}(0, spawn=true) do ch handle_request(ch, request) end ``` Adds a manual check that users don't use the `spawn=` keyword argument with the deprecated keyword arguments `ctype=` or `csize=`.
- Loading branch information
1 parent
1f564ce
commit af1979b
Showing
3 changed files
with
41 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
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