Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ab901beb
Commit
ab901beb
authored
Dec 12, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rev the engine
parent
e8efac19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
pubspec.yaml
packages/flutter/pubspec.yaml
+2
-2
pipe_to_file.dart
packages/updater/lib/pipe_to_file.dart
+16
-16
No files found.
packages/flutter/pubspec.yaml
View file @
ab901beb
...
...
@@ -7,8 +7,8 @@ dependencies:
collection
:
'
>=1.1.3
<2.0.0'
intl
:
'
>=0.12.4+2
<0.13.0'
material_design_icons
:
'
>=0.0.3
<0.1.0'
sky_engine
:
0.0.7
0
sky_services
:
0.0.7
0
sky_engine
:
0.0.7
1
sky_services
:
0.0.7
1
vector_math
:
'
>=1.4.3
<2.0.0'
# To pin the transitive dependency through mojo_sdk.
...
...
packages/updater/lib/pipe_to_file.dart
View file @
ab901beb
...
...
@@ -32,27 +32,27 @@ class PipeToFile {
Future
<
int
>
drain
()
{
Completer
<
int
>
completer
=
new
Completer
();
// TODO(mpcomplete): Is it legit to pass an async callback to subscribe?
_events
.
subscribe
((
List
<
int
>
event
)
async
{
int
signal
=
event
[
1
];
if
(
MojoHandleSignals
.
isReadable
(
signal
))
{
int
result
=
await
_doRead
();
if
(
result
!=
MojoResult
.
kOk
)
{
_events
.
subscribe
((
int
signal
)
{
(()
async
{
if
(
MojoHandleSignals
.
isReadable
(
signal
))
{
int
result
=
await
_doRead
();
if
(
result
!=
MojoResult
.
kOk
)
{
_events
.
close
();
_events
=
null
;
_outputStream
.
close
();
completer
.
complete
(
result
);
}
else
{
_events
.
enableReadEvents
();
}
}
else
if
(
MojoHandleSignals
.
isPeerClosed
(
signal
))
{
_events
.
close
();
_events
=
null
;
_outputStream
.
close
();
completer
.
complete
(
result
);
completer
.
complete
(
MojoResult
.
kOk
);
}
else
{
_events
.
enableReadEvents
()
;
throw
'Unexpected handle event:
${MojoHandleSignals.string(signal)}
'
;
}
}
else
if
(
MojoHandleSignals
.
isPeerClosed
(
signal
))
{
_events
.
close
();
_events
=
null
;
_outputStream
.
close
();
completer
.
complete
(
MojoResult
.
kOk
);
}
else
{
throw
'Unexpected handle event:
${MojoHandleSignals.string(signal)}
'
;
}
})();
});
return
completer
.
future
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment