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
2
votes
0 answers

Fibers Installed Failed. Meteor MUP Deployment Prepare Bundle: Failed

I’m experimenting with the meteor platform, specifically deployment to EC2, I’m using the following a base https://github.com/yogiben/meteor-starter - I’m having no issues deploying other meteor projects, however with this project specifically, I…
Grant
  • 33
  • 4
2
votes
1 answer

Deploy Meteor app to Synology armv7: There is an issue with `node-fibers`

I've spent a couple of days trying to run a build app from Meteor on my Synology ds213j (Armv7, 512MB ram). I keep encountering the following error ## There is an issue with `node-fibers`…
Patch
  • 53
  • 1
  • 1
  • 6
2
votes
0 answers

fibers@1.0.15 install node_modules/fibers node build.js || nodejs build.js

I'm have error when trying to run sudo npm install in node 10, in local server its work perfect. error: fibers@1.0.15 install /home/tickets/www/tickets_parser/node_modules/fibers node build.js || nodejs build.js gyp ERR! configure error gyp…
Michael Fedorov
  • 81
  • 2
  • 10
2
votes
1 answer

Combine NodeJS Fibers + VM Sandbox

I want to run some untrusted code in Node that might look like this: for (var i = 0; i < 5; i++){ green_led(1); sleep(500); green_led(0); sleep(500); } Using Fibers, I got the synchronous behaviour working as expected: var Fiber =…
Jodes
  • 14,118
  • 26
  • 97
  • 156
2
votes
0 answers

Meteor on the OpenShift - fibers do not install/build

Have spent last few days (!) trying various Meteor/OpenShift configurations. There is a little mess, in the short words, but what's the most common problem is the meteor bundle require Fibers module given as the downloadable repo like this …
Paul Paku
  • 360
  • 2
  • 16
2
votes
0 answers

Meteor internals: how does fibers work?

Meteor makes heavy use of fibers with each client's requests running in a separate fiber, but what does this actually do? From reading around the advantage of fibers seems to be that they let you write asynchronous code in a synchronous manner. Is…
Eliezer Steinbock
  • 4,728
  • 5
  • 31
  • 43
2
votes
1 answer

Fiber Error with npm package serial-port with meteor

I'm using the SerialPort npm package with meteor. I've used wrapAsync to list Serial ports but i don't know how to do with the serialPort.on method. I've an error when i want to inser datas in my Cars collection : Meteor code must always run…
tedour
  • 63
  • 5
2
votes
0 answers

Node.js This Fiber is already running

I have a question regarding usage of Fibers in Node.js. The following code fails with error message: This Fiber is already running on train routine. var f = Fiber(function() { var fiber = Fiber.current; utils.enseeds(seeds, function(err,…
com
  • 2,606
  • 6
  • 29
  • 44
2
votes
2 answers

Meteor.Collection with Meteor.bindEnvironment

Within a function that is already within Meteor.binEnvironment, when I run .find ({}), I get the error throw new Error ('Can \' t wait without a fiber '); If you place that call also within Meteor.bindEnvironment(.find…
rogeriojlle
  • 1,046
  • 1
  • 11
  • 19
2
votes
1 answer

Meteor EADDRINUSE exception on remote method with Fibers

Below is my code in server/server.js file. When I call Meteor.apply('testMethod') I get Error: listen EADDRINUSE. I am running meteor app with meteorite, the only non-generic package installed is npm var Fiber = Meteor.require('fibers'); var fiber =…
Vasaka
  • 579
  • 6
  • 17
2
votes
1 answer

Calling a Synchronous function in Meteor.js

When you call a synchronous function on the Meteor server, does it block the entire server until the callback is received? queueTask = function(callback) { ... } queueTaskSync = Meteor._wrapAsync(queueTask) queueTaskSync(function(results) { …
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
1 answer

Node.js Fibers and code scheduled with setTimeout leads to crash

I am using Fibers to solve a problem regarding how to yield control to the event loop in node.js, pausing the execution of some synchronous code. This works well, mostly, but I encountered a strange crashing but, and I am not able to find the reason…
Joachim Kurz
  • 2,875
  • 6
  • 23
  • 43
2
votes
1 answer

Node fibers/future callbacks with more than one argument

How does futures handle a callback that has more than one argument? This is critical to just about every use I could have for futures. The github example shows it only handleing one argument. The example from the Github Readme is var fileNames =…
wmarbut
  • 4,595
  • 7
  • 42
  • 72
1
vote
1 answer

Return a value from inside a Fiber

I'm trying to provide a collection having its methods wrapped in fibers for synchronous looking calls. const Fiber = require('fibers'); const wrapInFiber = require('./wrapInFiber'); let db; Fiber(function () { db = wrapInFiber({ url:…
Harry Adel
  • 1,238
  • 11
  • 16
1
vote
1 answer

How to wait observer call after Mongo insert on Meteor Server

I figured, when I insert into Mongo, Meteor's Fiber magic waits/blocks until the db acknowledged the write, but not until the observers are called. Is there a way to wait for them? I'm inserting data in server code, and I have a Caching layer that…
TeNNoX
  • 1,899
  • 3
  • 16
  • 27