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
476a4de1
Unverified
Commit
476a4de1
authored
Sep 03, 2019
by
Jonah Williams
Committed by
GitHub
Sep 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add delay to recompile request for web (#39752)
parent
76ebcc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
web_fs.dart
packages/flutter_tools/lib/src/build_runner/web_fs.dart
+6
-0
No files found.
packages/flutter_tools/lib/src/build_runner/web_fs.dart
View file @
476a4de1
...
...
@@ -121,6 +121,12 @@ class WebFs {
/// Recompile the web application and return whether this was successful.
Future
<
bool
>
recompile
()
async
{
// TODO(jonahwilliams): build_daemon is still watching for sources, which means we can
// easily miss changes when hot restart is triggered by IDEs. Until we fix this, add a
// delay to allow filesystem watches to gather all required source files. This duration
// was chosen arbitrarily.
// See https://github.com/flutter/flutter/issues/39696
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
150
));
_client
.
startBuild
();
await
for
(
BuildResults
results
in
_client
.
buildResults
)
{
final
BuildResult
result
=
results
.
results
.
firstWhere
((
BuildResult
result
)
{
...
...
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