blob: 1d99580066f2199a5468710cc2698fd6773b346c [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 Future close()
/// Tells the stream sink that no further streams will be added.
///
/// Returns a future which is completed when the stream sink has shut down.
///
/// @description Checks that returned value is a Future.
/// @author ilya
import "dart:async";
import "../../../Utils/expect.dart";
main() {
Expect.isTrue(new StreamController().close() is Future);
Expect.runtimeIsType<Future>(new StreamController().close());
}