Questions tagged [node-fibers]

A fiber is a particularly lightweight kernel thread scheduler dependent thread of execution using co-operative multitasking.

A fiber is a particularly lightweight thread of execution.

Like threads, fibers share address space. However, fibers use co-operative multitasking while threads use pre-emptive multitasking. Threads often depend on the kernel's thread scheduler to preempt a busy thread and resume another thread; fibers yield themselves to run another fiber while executing.

node-fiber introduces Fiber support for v8 and Node JS

Source: Wikipedia

114 questions
0
votes
1 answer

Exception from setTimeout callback: { stack: [Getter] } and Mongo error

I'm getting following exception thrown: => Meteor server restarted I20130820-00:17:58.852(3)? Exception from setTimeout callback: { stack: [Getter] } MongoError: $or requires nonempty array I20130820-00:17:58.852(3)? at Object.Future.wait…
joystick
  • 150
  • 1
  • 9
0
votes
1 answer

_meteor_bootstrap_.require not working in Meteor 0.6.4.1

The code I inherited use _meteor_bootstrap.require, an internal meteor details, to load module. Look like it's no longer working with 0.6.4.1? any suggestions of how I should load modules? Current code require = meteor_bootstrap.require Future =…
Jules
  • 153
  • 1
  • 12
0
votes
1 answer

How to use setPassword outside of server methods

I need to use Accounts.setPassword outside of meteor server methods, but on server side. With collections in this case I use Fiber wrapper but it doesn't work with Accounts.setPassword. Fiber(function(){Accounts.setPassword(msg.user_id,…
Denis
  • 7,127
  • 8
  • 37
  • 58
0
votes
1 answer

Meteor code must always run within a fiber when deploy in meteor server

I kept having this error when i deploy my app onto meteor cloud server. Meteor code must always run within a Fiber at _.extend.get (app/packages/meteor/dynamics_nodejs.js:14:13) at _.extend.apply…
You Hock Tan
  • 995
  • 2
  • 9
  • 18
0
votes
2 answers

Reinstalling node-fibers for a Meteor app on Modulus.io?

I'm trying to port a Meteor application from Heroku to Modulus.io (hopefully will be able to test out sticky sessions and horizontal scaling). I've demeteorized my app using the Modulus.io script, as spelled out in the following articles and…
AbigailW
  • 893
  • 12
  • 20
0
votes
0 answers

Generators in Node.js - Fiber or pure JavaScript?

I am trying to implement generators in Node.js. I came across node-fiber and node-lazy. Node-lazy deals with arrays and streams, but does not generate lazy things inherently (except numbers). While using fiber looks cleaner, it has its cons, and as…
Oliver Zheng
  • 7,831
  • 8
  • 53
  • 59
0
votes
1 answer

nodejs fibers not working for me

The result is populated in the exec function, but it never gets back to the main thread... what am I doing wrong? var Fiber, exec, execSync; exec = require("child_process").exec; Fiber = require('fibers'); execSync = function(cmd) { …
Billy Moon
  • 57,113
  • 24
  • 136
  • 237
-1
votes
1 answer

How to make tedious Async in Meteor

I am using this module tedious to connect. I am having issues when I try to populate a collection with the data from MSSQL. My code thus far: http://pastebin.com/q4ByRCbW Meteor.startup(function () { var Request =…
-1
votes
1 answer

meteor.js fiber callback after each

I am trying to call some function AFTER _.each is done... i am trying to do it with fibers. But if you show me how to do it with underscore.js AFTER method i will be happy as well. For now i have this: function doAsyncWork() { …
Lukas Lukac
  • 7,766
  • 10
  • 65
  • 75
1 2 3 4 5 6 7
8