core-async 2022-08-31

It makes sense to do IO (eg: file upload) inside a go block? I'm thinking of uploading X files using one go block per file

you will probably end up using a pipeline-blocking, to avoid the creation of 1e3 threads to upload 1e3 files.

ahhh thanks, I was implicitly implementing (a very crappy version of) that function!

I'm asking because the docstring says > go blocks should not (either directly or indirectly) perform operations that may block indefinitely.

Don't do io in go blocks

Yes, that is the purpose of thread

I see, thank you @isak! looks like thread is what I need!

👍🏻 1