Skip to content

[0.22] How to fix *mut pyo3::Python<'static> cannot be shared between threads safely when using with_gil and allow_threads #4622

Answered by relf
relf asked this question in Questions
Discussion options

You must be logged in to vote

Thanks for your reply! I just had to put the fun.bind(py) call within the closure.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@relf
Comment options

@mejrs
Comment options

@relf
Comment options

Answer selected by relf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants