Skip to content

Disdjj/Go-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Task

programing Go in Async way.

Usage

package main

import (
	task "github.com/Disdjj/Go-Task"
)

func main() {
	p := task.NewTask[string](func() (string, error) {
		return "123", nil
	})
	res, err := p.Await()
	if err != nil {
		panic(err)
	}
	println(res)
}

Attention

This Project is use for learning purpose, not for production.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages