sqlx-crud
sqlx-crud copied to clipboard
Future is not `Send` as it awaits another future which is not `Send`
Hi guys,
sorry for the probably noob question. I am calling an .update
from a spawned thread and I am getting this is error:
Future is not Send as it awaits another future which is not Send
I am reading about it and I understand that this is normal in this case because CrudFut
returned is not Send
.
Just kindly asking if there's a workaround for this or any suggestion to have CrudFut
Sendable, I was think to wrap it in Arc
maybe, but don't know if it's a good way to do it.
Thank you for any advice.