Closed fabianmurariu closed 1 year ago
You are using genawaiter::sync::GenBoxed
which is explicitly meant for the case where the generator will be sent across threads AFAICT. Try using genawaiter::rc::Gen
instead which doesn't require Send
.
Thanks for the help
This is more of a question rather than an issue, we're using
parking_lot
with genawaiter to get an iterator without lifetime from a struct.this is not allowed by the rust compiler because the guard is not Send.
However, is forcing the guard in this scenario (using
genawaiter
) to be Send an actual problem? I don't think the guard will be moved onto another thread. (that being said I have no clue how genawaiter works)Basically is this workable?