blob: df6875d802e4fa58d39c2db6ffa71e9c0fc8d370 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// false positive, see https://github.com/dart-lang/linter/issues/1381
// ignore_for_file: close_sinks
import 'dart:async';
import 'package:fidl_fidl_test_protocoleventremove/fidl_async.dart' as fidllib;
// [START contents]
class Server extends fidllib.Example {
final _onExistingEventStreamController = StreamController<void>();
@override
Stream<void> get onExistingEvent => _onExistingEventStreamController.stream;
}
void expectEvents(fidllib.ExampleProxy client) async {
await client.onExistingEvent.first;
}
// [END contents]