taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

Synchronous kiq?

Open slafs opened this issue 5 months ago • 3 comments

Hello! The README of the project says:

But taskiq can send and run both the sync and async functions

I can see some docs about running sync functions as tasks (here), but does that also mean I can "dispatch" a task from a sync function? Or do I always have to wrap .kiq with something like anyio.from_thread.run or anyio.run? Does taskiq has this built-in? 🤔

slafs avatar Jun 24 '25 09:06 slafs