Sign in
dart
/
sdk.git
/
refs/tags/2.15.0-25.0.dev
/
.
/
tests
/
lib_2
/
html
/
async_oneshot.dart
blob: 55827b17b7da7e9b38f0e048adc034fb1fc4721f [
file
] [
log
] [
blame
]
// @dart = 2.9
import
'dart:async'
;
import
'package:expect/minitest.dart'
;
main
(
message
,
replyTo
)
{
var
command
=
message
.
first
;
expect
(
command
,
'START'
);
new
Timer
(
const
Duration
(
milliseconds
:
10
),
()
{
replyTo
.
send
(
'DONE'
);
});
}