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

Make shutdown unstable and async #4940

Merged
merged 3 commits into from
Apr 28, 2020
Merged

Make shutdown unstable and async #4940

merged 3 commits into from
Apr 28, 2020

Conversation

lucacasonato
Copy link
Member

No description provided.

Comment on lines 25 to 26
export async function shutdown(rid: number, how: ShutdownMode): Promise<void> {
return sendSync("op_shutdown", { rid, how });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ry You said to make this async. Actually make the op async or just the exposed function for futureproofing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future proofing is fine. Ultimately the op should be async.

@bartlomieju
Copy link
Member

@ry what's the reason for making this API async? It's sync in tokio API https://docs.rs/tokio/0.2.19/tokio/net/struct.TcpStream.html#method.shutdown

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you!

@ry ry merged commit 30dc9bb into denoland:master Apr 28, 2020
@ry ry mentioned this pull request Apr 28, 2020
43 tasks
SASUKE40 pushed a commit to SASUKE40/deno that referenced this pull request May 7, 2020
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.

3 participants