go-python / py

py is a high-level API wrapping the low-level CPython C-API, for go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gorun=True callback error

aadog opened this issue · comments

commented

gorun=True callback error

func Test(n int, fn func(s string)) {
	for i := 0; i < n; i++ {
		time.Sleep(time.Second)
		fmt.Printf("write %d\n", i)
	}
	fn("ok")
}