Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(napi): add back custom gc for Send Buffer #1399

Merged
merged 1 commit into from Dec 19, 2022

Conversation

Brooooooklyn
Copy link
Sponsor Member

@Brooooooklyn Brooooooklyn commented Dec 19, 2022

For this scenario:

pub async fn send_buffer(buffer: Buffer) -> u32 {
  tokio::task::spawn(async move { buffer.len() as u32 })
    .await
    .unwrap()
}

Buffer will be dropped in the other thread.

@Brooooooklyn Brooooooklyn merged commit ef5dffc into main Dec 19, 2022
@Brooooooklyn Brooooooklyn deleted the add-back-custom-gc-for-buffer branch December 19, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant