Add debounce support to daemon hot reload requests (#55376)

This commit is contained in:
Danny Tuppeny
2020-07-15 19:56:05 +01:00
committed by GitHub
parent c9cf9c9940
commit 51fcf8fa7a
6 changed files with 259 additions and 26 deletions

View File

@@ -106,6 +106,7 @@ The `restart()` restarts the given application. It returns a Map of `{ int code,
- `fullRestart`: optional; whether to do a full (rather than an incremental) restart of the application
- `reason`: optional; the reason for the full restart (eg. `save`, `manual`) for reporting purposes
- `pause`: optional; when doing a hot restart the isolate should enter a paused mode
- `debounce`: optional; whether to automatically debounce multiple requests sent in quick succession (this may introduce a short delay in processing the request)
#### app.reloadMethod
@@ -115,6 +116,7 @@ Performs a limited hot restart which does not sync assets and only marks element
- `library`: the absolute file URI of the library to be updated; this is required.
- `class`: the name of the StatelessWidget that was updated, or the StatefulWidget
corresponding to the updated State class; this is required.
- `debounce`: optional; whether to automatically debounce multiple requests sent in quick succession (this may introduce a short delay in processing the request)
#### app.callServiceExtension
@@ -289,6 +291,7 @@ See the [source](https://github.com/flutter/flutter/blob/master/packages/flutter
## Changelog
- 0.6.0: Added `debounce` option to `app.restart` command.
- 0.5.3: Added `emulatorId` field to device.
- 0.5.2: Added `platformType` and `category` fields to emulator.
- 0.5.1: Added `platformType`, `ephemeral`, and `category` fields to device.