threading

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPool

func GetPool(name string) gopool.Pool

func Go

func Go(fn Runnable)

func GoCtxPool

func GoCtxPool(ctx context.Context, fn func())

func GoCtxPoolWithPanicHandler

func GoCtxPoolWithPanicHandler(ctx context.Context, fn func(), panicHandler func(context.Context))

func GoPool

func GoPool(fn func())

func GoPoolWithPanicHandler

func GoPoolWithPanicHandler(fn func(), panicHandler func(context.Context))

func GoSafe

func GoSafe(ctx context.Context, fn Runnable)

func GoSafeWithPanicHandler

func GoSafeWithPanicHandler(ctx context.Context, fn func(), panicHandler func(context.Context))

func RegisterPool

func RegisterPool(p gopool.Pool) error

func SetDafultPoolPanicHandler

func SetDafultPoolPanicHandler(panicHandler func(context.Context))

Types

type Runnable

type Runnable func()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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