上代码:
{}
package main
import (
"fmt"
)
func xrange() chan int {
var ch chan int = make(chan int)
go func() {
for i := 2; ; i++ {
fmt.Printf("xrange about to send %d\n", i)
ch继续阅读 »
tbox add a coroutine library with stackfull mode and provide the following features.
1. yield
2. suspend and resume
3. sleep
4. io scheduler with (epoll, poll, kqueue, select, poll ..)
5. supports stream, http and other all io modules of tbox
6. channel
7. lock
8. semaphore继续阅读 »