Skip to content

Instantly share code, notes, and snippets.

View matryer's full-sized avatar
🔨
Building things at @grafana

Mat Ryer matryer

🔨
Building things at @grafana
View GitHub Profile
@matryer
matryer / async.go
Last active August 17, 2020 02:58
Async helper function for Go.
// Released under MIT License
package main
import "sync"
// asyncFn is a function that can be run asychronously by
// async.
type asyncFn func() error