-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from txaty/generics
Add async methods and invalid number handling
- Loading branch information
Showing
3 changed files
with
75 additions
and
14 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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# Gool | ||
|
||
A generic goroutine pool just like Python ThreadPoolExecutor. | ||
|
||
Gool provides the following methods: | ||
|
||
- ```Submit```: Submit a task and return the result (if any). | ||
- ```AsyncSubmit```: Submit a task and return a future of the result (if any), the future is actually the result | ||
channel. | ||
- ```Map```: Submit a bundle of tasks and return the results in order (if any). | ||
- ```AsyncMap```: Submit a bundle of tasks and return the futures of the results (if any), the futures are the result | ||
channels. |
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