3 ms·
That will work. It only needs the additional bounds if you want to spawn that as a new task.
by hgomersall 3y ago
That will work. It only needs the additional bounds if you want to spawn that as a new task.
- qaq 3y agoso if I am doing async calls on DBRepo inside that function they can not be moved to a different thread by a runtime like tokio?
- jen20 3y agoOne would typically not spawn those - as I understand it you need the type constraints if calling “tokio::spawn” (or some equivalent) but not if simply calling an async function in the same task.