Sam
05/04/2019, 2:53 PMelizarov
05/04/2019, 3:03 PMSam
05/04/2019, 3:04 PMSam
05/04/2019, 3:05 PMelizarov
05/04/2019, 3:06 PMelizarov
05/04/2019, 3:06 PMelizarov
05/04/2019, 3:07 PMSam
05/04/2019, 3:07 PMelizarov
05/04/2019, 3:08 PMelizarov
05/04/2019, 3:08 PMSam
05/04/2019, 3:09 PMr4zzz4k
05/04/2019, 4:46 PMselect
once, but my idea is as follows: one channel for posting `Unit`s or objects with some data when fetching is needed, one channel for posting items to run actions upon and one coroutine selecting from those channels and running corresponding IO operations for both of these. select
is biased to the upper statements. So your coroutine would usually select from second channel and run actions on items, but as soon as there is a message in first channel, it would be taken instead of second one and fetching gets a prioritized processing.