hgjian
V2EX  ›  Node.js

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

  •  
  •   hgjian · Nov 7, 2020 via Android · 4750 views
    This topic created in 2052 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   ·   772 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:01 · PVG 04:01 · LAX 13:01 · JFK 16:01
    ♥ Do have faith in what you're doing.