天天看點

d參數傳遞給纖程函數

void fiberFunc(int i)
{
    writeln(i);
}

void main()
{
    auto fiber = new Fiber(() => fiberFunc(5));
    fiber.call();
}