3 Commits

Author SHA1 Message Date
Sebastian Seedorf
ce3a42a4d7 Merge branch 'master' of https://github.com/Caesar2011/rhinoder
merge
2020-04-30 19:07:16 +02:00
Sebastian Seedorf
155a02665a Fixed v0.42.0 2020-04-30 18:55:23 +02:00
Caesar2011
0441456068 typo 2020-04-20 18:28:35 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ This program reloads a deno program automatically when a file in the current wor
## Usage ## Usage
the following code runs `deno --allow-net example.ts` which is located in `/some/work/dir/example.ts` on start an whenever a file in the folder `/some/work/dir` changes. the following code runs `deno --allow-net example.ts` which is located in `/some/work/dir/example.ts` on start and whenever a file in the folder `/some/work/dir` changes.
```bash ```bash

2
mod.ts
View File

@@ -15,7 +15,7 @@ function runApp() {
runApp(); runApp();
for await (const event of Deno.fsEvents('.')) { for await (const event of Deno.watchFs('.')) {
if (event.kind !== "access") { if (event.kind !== "access") {
if (timeout) clearTimeout(timeout); if (timeout) clearTimeout(timeout);
timeout = setTimeout(runApp, throttle); timeout = setTimeout(runApp, throttle);