BREAKING(std): reorganization (#5087)

* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move std/_util/async.ts to std/async
* Move std/util/sha*.ts to std/hash
This commit is contained in:
Nayeem Rahman 2020-05-09 13:34:47 +01:00 committed by GitHub
parent 2b02535028
commit f184332c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
100 changed files with 306 additions and 365 deletions

View file

@ -0,0 +1,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();
});