Discover Packages
github.com/googollee/gobase
concurrancy
package
Version:
v1.1.13
Opens a new window with list of versions in this module.
Published: Mar 19, 2024
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package concurrancy provides functions for easy concurrancy.
WaitAll will run funcs parallelly, block till all of them finishing and return.
If ctx is canceled, it will wait till all of funcs cancelled.
WaitEither will run funcs parallelly, block till one of them finishing and return. Others will receive cancel signals through context.
If ctx is cancelled, it will return immediately with sending cancel signals.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.