LearnNewsExamplesServices
Frontmatter
id6863
titlecore.Base: isReady, readyPromise class fields, and support for an optional initAsync() method
stateClosed
labels
enhancement
assignees[]
createdAtJun 24, 2025, 8:18 PM
updatedAtJun 24, 2025, 8:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/6863
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 24, 2025, 8:58 PM

core.Base: isReady, readyPromise class fields, and support for an optional initAsync() method

Closed v10.0.0-beta.1 enhancement
tobiu
tobiu commented on Jun 24, 2025, 8:18 PM
  • Many classes do require optional or conditional dynamic imports.
  • We need a logical foundation for not overriding construct() manually each time.
tobiu added the enhancement label on Jun 24, 2025, 8:18 PM
tobiu referenced in commit e2b3a52 - "core.Base: isReady, readyPromise class fields, and support for an optional initAsync() method #6863" on Jun 24, 2025, 8:18 PM
tobiu closed this issue on Jun 24, 2025, 8:19 PM
tobiu
tobiu Jun 24, 2025, 8:57 PM

reopening, because we can do better: using Promise.resolve().then() REMOVES the need to put initRemote() into the macro task queue.

tobiu reopened this issue on Jun 24, 2025, 8:57 PM
tobiu referenced in commit 6588bd9 - "#6863 core.Base: smarter approach, which enables us to move initRemote() from the macro to the micro task queue." on Jun 24, 2025, 8:58 PM
tobiu closed this issue on Jun 24, 2025, 8:58 PM