Skip to content

NavidJalali/Q

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q

A lightweight promise based queue.

const queue = new Q<string>() 
// You can also pass a timeout, it defaults to 10s.

queue.offer("Hello")
    .then(queueLength => f(queueLength))

queue.take()
    .then(str => g(str))

About

A lightweight promise based queue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published