V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hgjian
V2EX  ›  Node.js

请问 chalk 怎么作为 Worker Threads 的参数?

  •  
  •   hgjian · 2020-11-07 08:35:23 +08:00 via Android · 4196 次点击
    这是一个创建于 1282 天前的主题,其中的信息可能已经有所发展或是发生改变。
    chalk Not working with Worker Threads
    https://github.com/chalk/chalk/issues/327

    Alternatively, pass chalk.level as part of the worker data passed to the worker thread and restore it on chalk in the worker thread.

    请问一下,这里有没有人知道 上面这句话怎么实现呢?
    没看懂怎么 restore 。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2730 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 04:16 · PVG 12:16 · LAX 21:16 · JFK 00:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.