Skip to content

Async node_helper start() #2487

@MikeBishop

Description

@MikeBishop

If a node_helper uses an async method for start(), it appears that MagicMirror declares the system ready as soon as the function returns the initial Promise. It would be nice if MM would collect the promises from the various modules, then await Promise.all(...) of them.

Steps to Reproduce: Use the async/await pattern within a node_helper's start() method

Expected Results: Initialization completes when all node_helpers are done initializing

Actual Results: MagicMirror reports ready while node_helper is still printing loading status to console

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions