$0 may cause unsafe use case (eg. pass it outside the closure or use it in another goroutine)
It also prevent to implement <- operator
We need define a static function something like:
func getG() -> Goroutine! {
// return current goroutine like
// Thread.current
}
$0may cause unsafe use case (eg. pass it outside the closure or use it in another goroutine)It also prevent to implement
<-operatorWe need define a static function something like: