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
722b4277
Unverified
Commit
722b4277
authored
Jan 29, 2020
by
Jason Simmons
Committed by
GitHub
Jan 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a non-null default value for the compute debug label in release mode (#49638)
parent
e7984bd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
_isolates_io.dart
packages/flutter/lib/src/foundation/_isolates_io.dart
+2
-4
No files found.
packages/flutter/lib/src/foundation/_isolates_io.dart
View file @
722b4277
...
...
@@ -12,9 +12,7 @@ import 'isolates.dart' as isolates;
/// The dart:io implementation of [isolate.compute].
Future
<
R
>
compute
<
Q
,
R
>(
isolates
.
ComputeCallback
<
Q
,
R
>
callback
,
Q
message
,
{
String
debugLabel
})
async
{
if
(!
kReleaseMode
)
{
debugLabel
??=
callback
.
toString
();
}
debugLabel
??=
kReleaseMode
?
'compute'
:
callback
.
toString
();
final
Flow
flow
=
Flow
.
begin
();
Timeline
.
startSync
(
'
$debugLabel
: start'
,
flow:
flow
);
final
ReceivePort
resultPort
=
ReceivePort
();
...
...
@@ -80,7 +78,7 @@ class _IsolateConfiguration<Q, R> {
Future
<
void
>
_spawn
<
Q
,
R
>(
_IsolateConfiguration
<
Q
,
FutureOr
<
R
>>
configuration
)
async
{
R
result
;
await
Timeline
.
timeSync
(
'
${configuration.debugLabel}
'
,
configuration
.
debugLabel
,
()
async
{
final
FutureOr
<
R
>
applicationResult
=
await
configuration
.
apply
();
result
=
await
applicationResult
;
...
...
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