gstatem_context

package
v0.0.0-...-b095219 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel(key any) (context.CancelFunc, bool)

Cancel 获取某个唯一标识的 context.CancelFunc

func Context

func Context(key any) (context.Context, bool)

Context 获取某个唯一标识的 context.Context

func Del

func Del(key any)

Del 删除某个唯一标识的上下文存储信息

func Get

Get 同时获取某个唯一标识的 context.Context 和 context.CancelFunc

func Set

func Set(key any, context context.Context, cancel context.CancelFunc)

Set 保存某个唯一标识的上下文存储信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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