User Tools

Site Tools



Q. I wanted to start two fibers in one instance. The first one started successfully, but it seems the second one didn't start at all.

On the instance:

local m = require('test').start()

In test.lua:

local function start

frun = fiber.create(
ffill = fiber.create(queue.fill(pool)) is working, queue.fill is not. What did I do wrong? (2017)

A. You need to pass in parameters differently: fiber.create(, pool) - this is going to work.

fiber.create expects a function to run in the fiber and its arguments, while you are passing in, which executes and tries to pass its result to fiber.create.


Enter your comment. Wiki syntax is allowed:
Q K C M᠎ F
fibers/fiber.create.txt · Last modified: 2018/05/25 21:26 by eabates

Real Time Web Analytics