Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
// Taken from: https://github.com/nkcmr/async/blob/main/async.go type syncPromise[T any] struct { done chan struct{} v T err error } func (s *syncPromise[T]) Await(ctx context.Context) (T, error) { select { case <-ctx.Done(): var zerov T return zerov, ctx.Err() case <-s.done: return s.v, s.err } } func (s *syncPromise[T]) Settled() bool { select { case <-s.done: return true default: return false } }
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Go is not an easy language (2021)
- Functional Programming Library for Golang by IBM
- A lightweight Golang generics library that provides Map, Reduce and more
- A lightweight Golang generics library that provides Map, Reduce and more
- A lightweight Golang generics library that provides Map, Reduce and more