注意..
チャネルに基づいて1例
FUNC shouldAbort(タイムアウトtime.Duration、CHちゃん< - BOOL ){ time.Sleep(タイムアウト) CH < - 真 } のtestMethod()FUNC BOOL { CH: =メイク(チャンBOOL、1 ) に行くshouldAbort(time.Second、CH ) time.AfterFunc(2 * time.Second、FUNC(){ fmt.Println(" ??? " ) CH < - 偽 }) リターン < - CH }