Skip to content

[0.21] pass #[pyclass] by mutable reference to async fn #4047

Answered by wyfo
rigens asked this question in Questions
Discussion options

You must be logged in to vote

The error is caused by a documented restriction.
The solution is also documented: you have to call Python::with_gil yourself, and it will have a negligible cost.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@rigens
Comment options

@rigens
Comment options

@adamreichold
Comment options

@adamreichold
Comment options

Comment options

You must be logged in to vote
6 replies
@wyfo
Comment options

@davidhewitt
Comment options

@wyfo
Comment options

@wyfo
Comment options

@davidhewitt
Comment options

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