Skip to content

Commit

Permalink
fix: Remove flashy async IIFE (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjscott committed Aug 28, 2018
1 parent b0e0945 commit 3485b6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ genThumbnail('path/to/video.webm', 'output/file/path.png', '250x?')
.catch(err => console.error(err))

// async/await
(async () => {
async function run () {
try {
await genThumbnail('http://www.example.com/foo.webm', 'output/file/path.png', '250x?')
console.log('Done!')
} catch (err) {
console.error(err)
}
})()
}

run()
```

## API
Expand Down

0 comments on commit 3485b6b

Please sign in to comment.