Giter VIP home page Giter VIP logo

fib-pool's Introduction

FIBJS - JavaScript on Fiber

    _______ _________ ______  _________ _______ 
   (  ____ \\__   __/(  ___ \ \__    _/(  ____ \
   | (    \/   ) (   | (   ) )   )  (  | (    \/
   | (__       | |   | (__/ /    |  |  | (_____ 
   |  __)      | |   |  __ (     |  |  (_____  )
   | (         | |   | (  \ \    |  |        ) |
   | (_     ___) (___| (___) )/\_)  )  /\____) |
   (__/     \_______/(______/ \____/   \_______)

fibjs is a JavaScript runtime built on Chrome's V8 JavaScript engine. fibjs uses fibers-switch , sync style & non-blocking IO model to build scalable system.

travis build status appveyor build status Join the chat at https://gitter.im/fibjs/fibjs

Get Started

Download

Documentation

Build

Community

If you have any question, please open an issue here

Star History

Star History Chart

fib-pool's People

Contributors

ngot avatar richardo2016 avatar wf744 avatar xicilion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fib-pool's Issues

Blocked when create() throws error

// eg.
var Pool = require("fib-pool")
var co = require("coroutine")

var p = Pool(() => {
throw new Error("Test create error");
});

co.parallel(() => {
try{
p((pooled) => {
console.log("tx operation: pooled value = %s", pooled);
});
}catch(e){
console.log("Can't get pooled object - %s", e)
}

}, 11); // 大于10时会永远阻塞!

console.log("quit");

问题:当对象池的创建函数有错误且错误次数大于池大小时,不能继续获取池化对象,且整个JS线程都被阻塞了。
版本:fib-pool 1.3.1,fibjs-v0.23.0-windows-x64。

Where is the command "ftsc" from?

In package.json, the script "build" contains the "ftsc" command, but no "ftsc" command found by executing "which ftsc". And executing "npm run build" is successful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.