Skip to content
#

goroutine

Here are 185 public repositories matching this topic...

im-kulikov
im-kulikov commented Sep 10, 2019

Expect (go version go1.12.9 darwin/amd64):

→ go mod tidy -v
go: downloading github.com/panjf2000/ants v1.2.0
go: extracting github.com/panjf2000/ants v1.2.0

Actual (go version go1.13 darwin/amd64)

→ go mod tidy -v
verifying github.com/panjf2000/ants@v1.2.0: checksum mismatch
        downloaded: h1:Ufw4aDz9RqH1RVblx2W9L9Uv5vSX5apbX5+peR7LQ5k=
        sum.golang.org: h1:pM
susamn
susamn commented Apr 11, 2020

Currently, we post new job to balancer and wait on the request CompletedChannel from the user side, like this:

balancer.PostJob(request)
<-request.CompletedChannel

We should merge this together and have one method, which will either:

  • Fail immediately if the request validation fails
  • Block for the whole duration of the job, meaning the method should do the wait on the CompletedCha

Improve this page

Add a description, image, and links to the goroutine topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the goroutine topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.