port of jsdeferred: http://cho45.stfuawsc.com/jsdeferred/
mattn/godeferred
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
godeferred: Deferred for golang (ports of jsdeferred) USAGE: package main import . "deferred" import "os" func main() { Deferred(). Next(func() string { // pass to next v return "Hello World" }). Next(func(v string) (string, os.Error) { // will be shown: Good Morning, Hello World println("Good Morning, " + v) // make error, goto Error() return "", os.NewError("Now time is not morning") }). Error(func(err *os.Error) { // will be shown: Ooooops!: Now time is not morning println("Ooooops!: " + (*err).String()) }) } AUTHOR: Yasuhiro Matsumoto <mattn.jp@gmail.com> THANKS: cho45: Author of jsdeferred
Releases
No releases published
Packages 0
No packages published