Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hgomersall
on May 13, 2023
|
parent
|
context
|
favorite
| on:
First Rust code in the Windows 11 kernel
That will work. It only needs the additional bounds if you want to spawn that as a new task.
qaq
on May 13, 2023
[–]
so 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
on May 13, 2023
|
parent
[–]
One 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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: