summaryrefslogtreecommitdiff
path: root/std/async/deferred_test.ts
blob: 83c3178533fdc95908f88d6e9ae4d763601d26f9 (plain)
1
2
3
4
5
6
7
8
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { deferred } from "./deferred.ts";

Deno.test("[async] deferred", function (): Promise<void> {
  const d = deferred<number>();
  d.resolve(12);
  return Promise.resolve();
});