0.0.8 • Published 1 year ago

@mcswift/bellman v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago