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

Implement event tracking in dart:io event loop #7390

Closed
sethladd opened this issue Dec 13, 2012 · 9 comments
Closed

Implement event tracking in dart:io event loop #7390

sethladd opened this issue Dec 13, 2012 · 9 comments
Labels
area-library closed-not-planned Closed as we don't intend to take action on the reported issue library-io P3 A lower priority bug or feature request

Comments

@sethladd
Copy link
Contributor

I called outputStream.flush() and then exit(0) but the stream was not flushed and the file was empty.

Can we have a way to know when the flush() is finished before we exit ?

The other way to do this is to shutdown all things that have something in the event queue but that's opaque so exit seemed appropriate.

@sethladd
Copy link
Contributor Author

A better title might be "VM does not wait for flush to finish when exit() is called"

or

"No way to wait for flush to finish before moving on"

?

@sethladd
Copy link
Contributor Author

@madsager
Copy link
Contributor

I think 'exit' has the right behavior as it is. However, we should provide insights into the event loop so people can figure out what they have pending. Turning this bug report into the feature request for that as discussed in issue #7362.


Removed Area-VM label.
Added Area-IO label.
Changed the title to: "Implement event tracking in dart:io event loop".

@sgjesse
Copy link
Contributor

sgjesse commented Jun 20, 2013

Removed Priority-Medium label.
Added Priority-Low label.

@sgjesse
Copy link
Contributor

sgjesse commented Jul 23, 2013

Added this to the Later milestone.

@kevmoo
Copy link
Member

kevmoo commented May 14, 2014

Removed Area-IO label.
Added Library-IO, Area-Library labels.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@lrhn
Copy link
Member

lrhn commented Nov 11, 2014

There has been no progress on this.
I guess the solution is to say "don't use exit unless you mean it", and use the async Future returned by flush if you want to wait for it.


Added NotPlanned label.

@sethladd sethladd added Type-Defect P3 A lower priority bug or feature request library-io area-library closed-not-planned Closed as we don't intend to take action on the reported issue labels Nov 11, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-library closed-not-planned Closed as we don't intend to take action on the reported issue library-io P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

6 participants