All Projects → LK4D4 → joincontext

LK4D4 / joincontext

Licence: MIT license
Join contexts like never before!

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to joincontext

Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (+1089.47%)
Mutual labels:  context
context
A proof of concept implementation of scoped context
Stars: ✭ 16 (-15.79%)
Mutual labels:  context
wc-context
Context for Web Components
Stars: ✭ 26 (+36.84%)
Mutual labels:  context
react-context
(つ°ヮ°)つ Understanding React Context
Stars: ✭ 11 (-42.11%)
Mutual labels:  context
Dapper.AmbientContext
Ambient context implementation for Dapper.NET
Stars: ✭ 31 (+63.16%)
Mutual labels:  context
Hunch
Hunch provides functions like: All, First, Retry, Waterfall etc., that makes asynchronous flow control more intuitive.
Stars: ✭ 94 (+394.74%)
Mutual labels:  context
Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (+710.53%)
Mutual labels:  context
instagram-clone-frontend
📸 Um clone do instagram, onde você pode logar/registrar, criar novos posts, seguir outros usuários e ver os posts das pessoas que você segue.
Stars: ✭ 16 (-15.79%)
Mutual labels:  context
elcontext
Context-based actions for Emacs
Stars: ✭ 18 (-5.26%)
Mutual labels:  context
context-mirror
Mirror of ConTeXt beta source code
Stars: ✭ 49 (+157.89%)
Mutual labels:  context
captcha
Go package captcha generation and verification of image, Refer from https://github.com/dchest/captcha. Use captcha pool generation
Stars: ✭ 29 (+52.63%)
Mutual labels:  context
interactor
Simple service objects for PHP
Stars: ✭ 36 (+89.47%)
Mutual labels:  context
rocket-pipes
Powerful pipes for TypeScript, that chain Promise and ADT for you 🚌 -> ⛰️ -> 🚠 -> 🏂 -> 🚀
Stars: ✭ 18 (-5.26%)
Mutual labels:  context
ghaction-dump-context
GitHub Action composite to dump context
Stars: ✭ 30 (+57.89%)
Mutual labels:  context
xMenuTools
Extended context menu tools for Windows
Stars: ✭ 56 (+194.74%)
Mutual labels:  context
Applicationprovider
Retrieve the android application and the current activity from anywhere
Stars: ✭ 162 (+752.63%)
Mutual labels:  context
react-zap
⚡ Zap props from one React component to another, using React new context API and your existing higher-order components ⚡
Stars: ✭ 17 (-10.53%)
Mutual labels:  context
react-context-tabs
Flexible tabs for React
Stars: ✭ 31 (+63.16%)
Mutual labels:  context
kubeswitch
visually select kubernetes context/namespace from tree
Stars: ✭ 15 (-21.05%)
Mutual labels:  context
nestjs-cls
A continuation-local storage (async context) module compatible with NestJS's dependency injection.
Stars: ✭ 110 (+478.95%)
Mutual labels:  context

joincontext

Build Status GoDoc

Package joincontext provides a way to combine two contexts. For example it might be useful for grpc server to cancel all handlers in addition to provided handler context.

For additional info see godoc page

Example

	ctx1, cancel1 := context.WithCancel(context.Background())
	defer cancel1()
	ctx2 := context.Background()

	ctx, cancel := joincontext.Join(ctx1, ctx2)
	defer cancel()
	select {
	case <-ctx.Done():
	default:
		fmt.Println("context alive")
	}

	cancel1()

	// give some time to propagate
	time.Sleep(100 * time.Millisecond)

	select {
	case <-ctx.Done():
		fmt.Println(ctx.Err())
	default:
	}

	// Output: context alive
	// context canceled
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].