blob: b4be9a4c442d9766b027afd0052513ab4a4bd2e1 [file] [log] [blame]
// Copyright (c) 2011, 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.
/// @assertion StreamController({void onListen(), void onPause(),
/// void onResume(), dynamic onCancel(), bool sync: false})
/// If onCancel needs to perform an asynchronous operation, onCancel should
/// return a future that completes when the cancel operation is done.
/// @description Checks that stream subscription is cancelled only after
/// the Future returned by onCancel function is completed.
/// @author
import "dart:async";
import "../StreamSink/StreamSink_inherited_tests.lib.dart" as inherited_tests;
StreamController create() => new StreamController.broadcast();
main() {