From d89e7369dc78353f2cf97f5a81a785f9995fa1d7 Mon Sep 17 00:00:00 2001 From: j50n Date: Thu, 8 Jun 2023 22:08:30 -0600 Subject: [PATCH] more README edits --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6295bc0..f50459c 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ When the new API is ready, there will be a 1.0 release and `mod.ts` will be switched to the new API. The old API will continue to be maintained at `mod1.ts` for some time after the Deno 2.0 release. -The old API was built on `Command.run()` which is now deprecated and scheduled -to be removed in Deno 2.0. There were other reasons to start over from scratch, -but this was the primary reason everything changed. +The old API was built on `Deno.run()` which is now deprecated and scheduled to +be removed in Deno 2.0. There were other reasons to start over from scratch, but +this was the primary reason everything changed. ## The New API @@ -32,3 +32,7 @@ To use the new API: The new API is stabilizing and the code is working. New tests are being added regularly. Obviously the documentation is a work in progress. Refactors are likely before the 1.0.0 release. + +The new API is a nice way to work with `AsyncIterable` in general. It also +blends in a really nice way to work with child processes where things like +errors _just work_ and you don't have to worry about resource leaks.