()
| 416 | |
| 417 | |
| 418 | def is_in_node() -> bool: |
| 419 | return ( |
| 420 | hasattr(js, "process") |
| 421 | and hasattr(js.process, "release") |
| 422 | and hasattr(js.process.release, "name") |
| 423 | and js.process.release.name == "node" |
| 424 | ) |
| 425 | |
| 426 | |
| 427 | def is_worker_available() -> bool: |
no outgoing calls
no test coverage detected