EventWriter missing clone affects async writes #472
Unanswered
acuevadell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to make multiple writings in async functions, but I need to clone the EventWriter to send it as a parameter:
Errors:
move occurs because 'event_writer' has type 'EventWriter', which does not implement the 'Copy' trait
I am using the EventWrite before and after this code, so I am getting this error, I normally solve it using clone(), but it is not implemented for EventWrite. My final intention is to use to use tokio and perform the 10 writes in parallel.
Is it possible to copy the EventWrite?
Is there any other way to do the same?
I would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions