Skip to content

stream.Wait() panic when callback is nil #144

Description

@rhyshmwang

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions