alanvardy / tod

An unofficial Todoist command line client written in Rust
MIT License
104 stars 9 forks source link

Make project empty async #721

Closed alanvardy closed 6 months ago

alanvardy commented 6 months ago

PR up

alanvardy commented 6 months ago

@stacksjb list process and project empty are now async on v0.6.3 Let me know what you think!

stacksjb commented 6 months ago

This is beautiful and works SO well!! I was elated when I saw this. Thank you so much!

It would be good to note that generally async (nonblocking) is preferred, but there are probably some specific use cases that should remain blocking - generally those where you are working on a single item.

The main use case that comes to mind is "tod task next", "tod task complete", or tod task quick-add - in particular my current extension that adds a task needs to get an immediate result/response back that it was successful or failed. (This could be handled with a specific flag though - I could see a "bulk add" possibly down the road?)

alanvardy commented 6 months ago

I 100% agree. It will just be for the cases where we are trying to process items rapidly, as we get less feedback this way.