V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hgjian
V2EX  ›  Node.js

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

  •  
  •   hgjian · Nov 7, 2020 via Android · 4671 views
    This topic created in 2008 days ago, the information mentioned may be changed or developed.
    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 。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3314 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    ♥ Do have faith in what you're doing.