sqlx-crud icon indicating copy to clipboard operation
sqlx-crud copied to clipboard

Future is not `Send` as it awaits another future which is not `Send`

Open arkanoider opened this issue 1 year ago • 0 comments

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.

arkanoider avatar Dec 10 '23 07:12 arkanoider