mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
18 lines
175 B
Go
18 lines
175 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
func forever() {
|
|
select {} // block forever
|
|
println("end")
|
|
}
|
|
|
|
func main() {
|
|
go forever()
|
|
time.Sleep(1e4)
|
|
println("bye")
|
|
}
|
|
|
|
// Output:
|
|
// bye
|