stream.Wait() panic when callback is nil
Author: rhyshmwangCreated Nov 15, 2024Updated Nov 15, 2024
func Wait will panic, because callback is nil.
Can func Wait support nil callback? Maybe do nothing when callback is nil is better
st := stream.New().WithMaxGoroutines(20)
st.Go(func() stream.Callback {
return nil
}
st.Wait()Source: sourcegraph/conc