github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/lgoctx_builtin.golden (about)

     1  package lgo_exec
     2  
     3  import pkg0 "github.com/yunabe/lgo/core"
     4  func waitCancel() {
     5  	<-pkg0.GetExecContext().Done()
     6  }
     7  func lgo_init() {
     8  
     9  	for {
    10  		select {
    11  		case <-pkg0.GetExecContext().Done():
    12  			break
    13  		}
    14  	}
    15  }