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