openSUSE / Mojo-IOLoop-ReadWriteProcess

Execute external programs or internal code blocks as separate process
Other
10 stars 13 forks source link

Queue: add missing Time::HiRes #26

Closed cfconrad closed 2 years ago

cfconrad commented 2 years ago

In the consume method, we use a sleep .5, which is equal to sleep 0 if we miss Time::HiRes. I think it wasn't the intention, so including Time::HiRes might help?!

see: https://github.com/mudler/Mojo-IOLoop-ReadWriteProcess/blob/master/lib/Mojo/IOLoop/ReadWriteProcess/Queue.pm#L30