concurrancy

package
v1.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package concurrancy provides functions for easy concurrancy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitAll

func WaitAll(ctx context.Context, funcs ...func(context.Context))

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.

func WaitEither

func WaitEither(ctx context.Context, funcs ...func(context.Context))

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL