hgjian
V2EX  ›  Node.js

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

  •  
  •   hgjian · Nov 7, 2020 via Android · 4707 views
    This topic created in 2023 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   ·   961 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
    ♥ Do have faith in what you're doing.