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
dd52b7c5
Commit
dd52b7c5
authored
Oct 20, 2016
by
John McCutchan
Committed by
GitHub
Oct 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Chain.capture instead of RunZoned (#6420)
parent
28384787
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
hot.dart
packages/flutter_tools/lib/src/hot.dart
+2
-1
run.dart
packages/flutter_tools/lib/src/run.dart
+3
-1
No files found.
packages/flutter_tools/lib/src/hot.dart
View file @
dd52b7c5
...
@@ -7,6 +7,7 @@ import 'dart:convert';
...
@@ -7,6 +7,7 @@ import 'dart:convert';
import
'dart:io'
;
import
'dart:io'
;
import
'package:path/path.dart'
as
path
;
import
'package:path/path.dart'
as
path
;
import
'package:stack_trace/stack_trace.dart'
;
import
'application_package.dart'
;
import
'application_package.dart'
;
import
'asset.dart'
;
import
'asset.dart'
;
...
@@ -145,7 +146,7 @@ class HotRunner extends ResidentRunner {
...
@@ -145,7 +146,7 @@ class HotRunner extends ResidentRunner {
bool
shouldBuild:
true
bool
shouldBuild:
true
})
{
})
{
// Don't let uncaught errors kill the process.
// Don't let uncaught errors kill the process.
return
runZoned
(()
{
return
Chain
.
capture
(()
{
return
_run
(
return
_run
(
connectionInfoCompleter:
connectionInfoCompleter
,
connectionInfoCompleter:
connectionInfoCompleter
,
route:
route
,
route:
route
,
...
...
packages/flutter_tools/lib/src/run.dart
View file @
dd52b7c5
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
import
'dart:async'
;
import
'dart:async'
;
import
'dart:io'
;
import
'dart:io'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'application_package.dart'
;
import
'application_package.dart'
;
import
'base/logger.dart'
;
import
'base/logger.dart'
;
import
'base/utils.dart'
;
import
'base/utils.dart'
;
...
@@ -47,7 +49,7 @@ class RunAndStayResident extends ResidentRunner {
...
@@ -47,7 +49,7 @@ class RunAndStayResident extends ResidentRunner {
bool
shouldBuild:
true
bool
shouldBuild:
true
})
{
})
{
// Don't let uncaught errors kill the process.
// Don't let uncaught errors kill the process.
return
runZoned
(()
{
return
Chain
.
capture
(()
{
assert
(
shouldBuild
==
!
prebuiltMode
);
assert
(
shouldBuild
==
!
prebuiltMode
);
return
_run
(
return
_run
(
traceStartup:
traceStartup
,
traceStartup:
traceStartup
,
...
...
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