Last active
May 9, 2021 13:56
-
-
Save syafdia/6f94e97900218850202e199d7cebd81b to your computer and use it in GitHub Desktop.
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
// T is a type alias to accept any type. | |
type T = interface{} | |
// WorkerPool is a contract for Worker Pool implementation | |
type WorkerPool interface { | |
Run() | |
AddTask(task func()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment