0.0.8 • Published 2 months ago

@mcswift/bellman v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

BellMan

ok,this is a package what supply signal for asynchronous dependent. Support promise like style and rxjs like style api.

just directly see examples and type declare , you will can use this package.

import { Bellman } from "@mcswift/bellman"

const bellMan = new BellMan<string>();

const sub = bellMan.subscribe((val)=>{
  console.log(val)
})

bellMan.resolve("bar");
// will output: "bar"

await bellMan.signal; 
// signal is a promise proxy , you can provide it for module which dependent your code.
0.0.8

2 months ago

0.0.5

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.4

5 months ago

0.0.3

8 months ago

0.0.2

9 months ago

0.0.1

9 months ago