Questions tagged [fibers]

A fiber is a lightweight thread which uses cooperative rather than preemptive multitasking. It is very similar to and often confused with a [coroutine]. Use this tag for questions relating to the [ruby] feature, otherwise prefer to use [coroutine].

A fiber is a lightweight thread which uses cooperative rather than preemptive multitasking. It is very similar to and often confused with a .

In Ruby, fibers are primitives for implementing light weight cooperative concurrency. It appeared in Ruby 1.9.

Related tags

189 questions
1
vote
1 answer

EventMachine with em-synchrony I need to correctly throttle my http requests

I have a consumer which pulls messages off of a queue via an evented subscription. It takes those messages and then connects with a rather slow http interface. I have a worker pool of 8 and once those are all filled up I need to stop pulling…
unflores
  • 1,764
  • 2
  • 15
  • 35
1
vote
1 answer

Ruby 1.9.3-p140 - Maximum number of threads in a Ruby program?

I'm playing with Thread and I discovered that I cannot run 10000 threads. It gives me the following error: threading.rb:23:in `initialize': can't create Thread (35) (ThreadError) from threading.rb:23:in `new' from…
Thanks for all the fish
  • 1,671
  • 3
  • 17
  • 31
1
vote
1 answer

Goliath breaks em-synchrony/em-hiredis when multiple with_api() tests are called in one RSpec suite

I'm just experiencing weird behavior while testing an Goliath API with RSpec. One of my tests looks like this: require 'helper' describe Scales::Dispatch do it "should return a 404 if resource was not found" do with_api(Scales::Server) do …
Thomas Fankhauser
  • 5,039
  • 1
  • 33
  • 32
0
votes
0 answers

Go Fiber framework gives Cors error even if the setup is done correctly

I use fiber for my api app written in golang. When I use Postman, everything works fine Web Browser, again it works But from the frontend application written in Nextjs, it gives Cors Error, 127.0.0.1:8080/tasks:1 Failed to load resource:…
0
votes
0 answers

Meteor fibers/future.js Push is not defined

I am attempting to run an old meteor app that is giving me some trouble. Below is the error I receive when using the command: meteor --settings settings-development.json run ios Example of what my settings-development.json looks like: { …
James
  • 1
0
votes
1 answer

Node fibers error while running RocketChat self hosted on M1 Mac

Setup Reference https://developer.rocket.chat/open-source-projects/server/server-environment-setup/mac-osx Error screenshot: enter image description here I am trying to setup RocketChat v6 on a local M1 MacBook Air. The yarn dev should ideally start…
0
votes
0 answers

How to make sure randomly generated fiber don't intersect with the trim circle?

random generated fiber in polymer matrix I create a randomly fiber generated in python and execute in abaqus. I want to make sure the random fiber generated didnt intersect with the trim circle on the left as shown in the image uploaded. Please…
awjaf
  • 1
0
votes
1 answer

Fiber texture load fails with error: A component suspended while responding to synchronous input

I'm trying to load a texture using textureloader: const texture = useLoader(TextureLoader, '/textures/texture.png') react gives me an error: ERROR A component suspended while responding to synchronous input. This will cause the UI to be replaced…
Sisandy
  • 1
  • 1
0
votes
0 answers

ZIO:Lifecycle and States of a ZIO Fiber

a thread lies in one of the shown states at any instant: New Runnable Blocked Waiting Timed Waiting Terminated So, what is lifecycle and states of a ZIO fiber? Is it similar or the same as a thread?
Jay
  • 1
  • 1
0
votes
1 answer

https load balancer with fiber is not working

I am trying to make simple load balancer using fiber in Go. In my computer it's working fine using http. import ( "crypto/tls" "log" "os" store "intraGo/stores/session_store" "github.com/gofiber/fiber/v2" …
rszf
  • 166
  • 1
  • 8
0
votes
0 answers

Kubernetes Unprocessable entity error 422

WARNING:root:failed to start process PoolWorker-1:102: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/fiber/pool.py", line 98, in safe_start proc.start() File…
0
votes
0 answers

Problem using c.Sendfile(path) in fiber (golang web framework)

I have saved some of videos in specific paths. I want the video to be displayed when the API is called. I do this using c.SendFile(). The problem is that by calling the API once by vlc or browser, it is called several times. I realized this from…
0
votes
1 answer

How to load models 3d in React Three Fiber

I have an App.js file that renders an icosahedronGeometry in Three Fiber, how do I make the file that loads the model that is in the Model.js file App.js import React, { Suspense, useRef} from "react"; import { Canvas, useFrame } from…
0
votes
0 answers

react fiber threejs how to modify parts of a model

I want to modify the form (geometry) of an human model, but which method can I use for that? for example, make the model mesomorphic, I want to change his body. this is the geometry of my model's part for example
younes
  • 21
  • 3
0
votes
1 answer

AsyncWait in Lely CANopen is not behaving asynchronously?

I'm trying to perform some tasks using fibers in the Lely CANopen stack. However, I either don't understand the model, or something is broken. What I would like to do is run multiple tasks at different rates. An example based on the tutorial…
Jacob
  • 15
  • 4