blob: a38ac6f1ea479a1d3539ac4db0e1b6f50cd58c07 [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();
main() {