You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Async executes a function in a goroutine and returns the result in a channel.funcAsync[Aany](ffunc() A) <-chanA {
ch:=make(chanA, 1)
gofunc() {
ch<-f()
}()
returnch
}
Why Async doesn't close the chan?
The text was updated successfully, but these errors were encountered:
Why Async doesn't close the chan?
The text was updated successfully, but these errors were encountered: