Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/golang-design/thread

๐Ÿงต thead facilities in Go
https://github.com/golang-design/thread

go golang thread

Last synced: 11 days ago
JSON representation

๐Ÿงต thead facilities in Go

Lists

README

        

# thread [![PkgGoDev](https://pkg.go.dev/badge/golang.design/x/thread)](https://pkg.go.dev/golang.design/x/thread) [![Go Report Card](https://goreportcard.com/badge/golang.design/x/thread)](https://goreportcard.com/report/golang.design/x/thread) ![thread](https://github.com/golang-design/thread/workflows/thread/badge.svg?branch=main)

Package thread provides threading facilities, such as scheduling
calls on a specific thread, local storage, etc.

```go
import "golang.design/x/thread"
```

## Quick Start

```go
th := thread.New()

th.Call(func() {
// call on the created thread
})
```

## License

MIT ยฉ 2021 The golang.design Initiative