KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
ready-resource
★ 20
Open GitHub ↗
Modern single resource management
Download README (.md)
Explore Similar Repositories
PLS
:
Official repository for Is your noise correction noisy? PLS: Robustness to label noise with two stage detection WACV 2023
responsive-card-hover-effects
:
CSS Card Hover Effects | HTML & CSS
Profit_Margin_Game
:
No description available.
Ghostscript-API-Wrapper
:
An extended Ghostscript API for Delphi and Free Pascal to simplify use of Ghostscript.
hacktofest-2k22
:
Hacktoberfest2022
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
ready-resource
?
Download (.md)
# ready-resource Modern single resource management ``` npm install ready-resource ``` ## Usage ```js const ReadyResource = require('ready-resource') class Thing extends ReadyResource { constructor() { super() } async _open() { // open the resource } async _close() { // close the resource } } const r = new Thing() await r.ready() // calls _open once await r.ready() // noop await r.close() // calls _close after _open has finished await r.close() // noop ``` ## License MIT