skypjack / uvw

Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!
MIT License
1.82k stars 207 forks source link

Run a task on next event loop iteration #312

Closed mincequi closed 4 months ago

mincequi commented 4 months ago

Hi @skypjack, is there any possibility to run a task on next event loop iteration? Currently, i would create a timer with 0ms. Is there any convenient function for this?

Thanks already!

skypjack commented 4 months ago

It doesn't depend on uwv @mincequi the question is if it's possible in libuv. If this is the case, than you can have it in uwv too.

mincequi commented 4 months ago

Ok, i expected that answer 😉 libuv does not offer that convenience function, or at least: i cannot find it. I somehow understand, that uvw aims to be a wrapper around libuv -- no more, no less.

I will add it to uvw_net then.

Thanks anyway!