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
1ab83e66
Commit
1ab83e66
authored
Dec 12, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #894 from Hixie/rev
rev the engine
parents
cb1ee0f6
ab901beb
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 @
1ab83e66
...
@@ -7,8 +7,8 @@ dependencies:
...
@@ -7,8 +7,8 @@ dependencies:
collection
:
'
>=1.1.3
<2.0.0'
collection
:
'
>=1.1.3
<2.0.0'
intl
:
'
>=0.12.4+2
<0.13.0'
intl
:
'
>=0.12.4+2
<0.13.0'
material_design_icons
:
'
>=0.0.3
<0.1.0'
material_design_icons
:
'
>=0.0.3
<0.1.0'
sky_engine
:
0.0.7
0
sky_engine
:
0.0.7
1
sky_services
:
0.0.7
0
sky_services
:
0.0.7
1
vector_math
:
'
>=1.4.3
<2.0.0'
vector_math
:
'
>=1.4.3
<2.0.0'
# To pin the transitive dependency through mojo_sdk.
# To pin the transitive dependency through mojo_sdk.
...
...
packages/updater/lib/pipe_to_file.dart
View file @
1ab83e66
...
@@ -32,27 +32,27 @@ class PipeToFile {
...
@@ -32,27 +32,27 @@ class PipeToFile {
Future
<
int
>
drain
()
{
Future
<
int
>
drain
()
{
Completer
<
int
>
completer
=
new
Completer
();
Completer
<
int
>
completer
=
new
Completer
();
// TODO(mpcomplete): Is it legit to pass an async callback to subscribe?
_events
.
subscribe
((
int
signal
)
{
_events
.
subscribe
((
List
<
int
>
event
)
async
{
(()
async
{
int
signal
=
event
[
1
];
if
(
MojoHandleSignals
.
isReadable
(
signal
))
{
if
(
MojoHandleSignals
.
isReadable
(
signal
))
{
int
result
=
await
_doRead
();
int
result
=
await
_doRead
();
if
(
result
!=
MojoResult
.
kOk
)
{
if
(
result
!=
MojoResult
.
kOk
)
{
_events
.
close
();
_events
=
null
;
_outputStream
.
close
();
completer
.
complete
(
result
);
}
else
{
_events
.
enableReadEvents
();
}
}
else
if
(
MojoHandleSignals
.
isPeerClosed
(
signal
))
{
_events
.
close
();
_events
.
close
();
_events
=
null
;
_events
=
null
;
_outputStream
.
close
();
_outputStream
.
close
();
completer
.
complete
(
result
);
completer
.
complete
(
MojoResult
.
kOk
);
}
else
{
}
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
;
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