-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
122 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 2.13.2 - 2021-06-09 | ||
## 2.13.3 - 2021-06-10 | ||
|
||
This is a patch release that fixes: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tests/standalone/io/file_system_watcher_large_set_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// VMOptions=--delayed-filewatch-callback --enable-isolate-groups --experimental-enable-isolate-groups-jit | ||
// VMOptions=--delayed-filewatch-callback --no-enable-isolate-groups | ||
|
||
// Verifies that cancelling subscription from inside of the event handler | ||
// works as expected, does not result in crash or hang. | ||
|
||
import "dart:async"; | ||
import "dart:io"; | ||
|
||
import "package:path/path.dart"; | ||
|
||
final completer = Completer<void>(); | ||
late StreamSubscription subscription; | ||
|
||
void handleWatchEvent(event) { | ||
if (event is FileSystemCreateEvent && event.path.endsWith('txt')) { | ||
subscription.cancel(); | ||
completer.complete(); | ||
} | ||
} | ||
|
||
void main() async { | ||
if (!FileSystemEntity.isWatchSupported) return; | ||
final dir = Directory.systemTemp.createTempSync('dart_file_system_watcher'); | ||
final watcher = dir.watch(); | ||
subscription = watcher.listen(handleWatchEvent); | ||
|
||
print('watching ${dir.path}'); | ||
for (int i = 0; i < 1000; i++) { | ||
File(join(dir.path, 'file_$i.txt')).createSync(); | ||
} | ||
await completer.future; | ||
try { | ||
dir.deleteSync(recursive: true); | ||
} catch (_) {} | ||
} |
40 changes: 40 additions & 0 deletions
40
tests/standalone_2/io/file_system_watcher_large_set_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// VMOptions=--delayed-filewatch-callback --enable-isolate-groups --experimental-enable-isolate-groups-jit | ||
// VMOptions=--delayed-filewatch-callback --no-enable-isolate-groups | ||
|
||
// Verifies that cancelling subscription from inside of the event handler | ||
// works as expected, does not result in crash or hang. | ||
|
||
import "dart:async"; | ||
import "dart:io"; | ||
|
||
import "package:path/path.dart"; | ||
|
||
final completer = Completer<void>(); | ||
var subscription; | ||
|
||
void handleWatchEvent(event) { | ||
if (event is FileSystemCreateEvent && event.path.endsWith('txt')) { | ||
subscription.cancel(); | ||
completer.complete(); | ||
} | ||
} | ||
|
||
void main() async { | ||
if (!FileSystemEntity.isWatchSupported) return; | ||
final dir = Directory.systemTemp.createTempSync('dart_file_system_watcher'); | ||
final watcher = dir.watch(); | ||
subscription = watcher.listen(handleWatchEvent); | ||
|
||
print('watching ${dir.path}'); | ||
for (int i = 0; i < 1000; i++) { | ||
File(join(dir.path, 'file_$i.txt')).createSync(); | ||
} | ||
await completer.future; | ||
try { | ||
dir.deleteSync(recursive: true); | ||
} catch (_) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,6 @@ | |
CHANNEL stable | ||
MAJOR 2 | ||
MINOR 13 | ||
PATCH 2 | ||
PATCH 3 | ||
PRERELEASE 0 | ||
PRERELEASE_PATCH 0 |