Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当在 Fiber 的上下文中调用UnknownThrowErrora 时,我遇到了一个问题。throw我正在运行 Ruby 2.4.1。可以使用示例代码重现该问题,如下所示:
UnknownThrowError
throw
catch(:tag) do Fiber.new do throw(:tag) end.resume end
这种行为是预期的吗?我找不到有关 Fibers 的文档。非常感谢任何指导。