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
3a0aabc3
Unverified
Commit
3a0aabc3
authored
Apr 18, 2018
by
Todd Volkert
Committed by
GitHub
Apr 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs to VMService.onEvent() (#16711)
parent
928c41e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+8
-1
No files found.
packages/flutter_tools/lib/src/vmservice.dart
View file @
3a0aabc3
...
...
@@ -182,7 +182,14 @@ class VMService {
Future
<
Stream
<
ServiceEvent
>>
get
onTimelineEvent
=>
onEvent
(
'Timeline'
);
// TODO(johnmccutchan): Add FlutterView events.
// Listen for a specific event name.
/// Returns a stream of VM service events.
///
/// This purposely returns a `Future<Stream<T>>` rather than a `Stream<T>`
/// because it first registers with the VM to receive events on the stream,
/// and only once the VM has acknowledged that the stream has started will
/// we return the associated stream. Any attempt to streamline this API into
/// returning `Stream<T>` should take that into account to avoid race
/// conditions.
Future
<
Stream
<
ServiceEvent
>>
onEvent
(
String
streamId
)
async
{
await
_streamListen
(
streamId
);
return
_getEventController
(
streamId
).
stream
;
...
...
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