Skip to content

More convenient usage for promises as callbacks#20

Merged
Insality merged 4 commits intomainfrom
develop
Apr 12, 2026
Merged

More convenient usage for promises as callbacks#20
Insality merged 4 commits intomainfrom
develop

Conversation

@Insality
Copy link
Copy Markdown
Owner

No description provided.

@Insality Insality self-assigned this Apr 12, 2026
@Insality Insality added the enhancement New feature or request label Apr 12, 2026
Copilot AI review requested due to automatic review settings April 12, 2026 19:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Promise API to make promise instances safer to use as one-argument callbacks, and bumps the library to v16.

Changes:

  • Make promise:__call resolve-only (single argument), removing the prior “nil + reason” rejection behavior.
  • Extend promise chaining utilities with additional append/tail/reset behaviors and tests.
  • Bump documented/project version references from 15 → 16.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
event/promise.lua Changes callable promise behavior and extends/adjusts pipeline helpers (append/tail/reset).
test/test_promise.lua Updates tests for the new __call semantics and adds tests around append/tail/reset.
README.md Bumps dependency link/version and adds V16 changelog notes for the Promise behavior changes.
game.project Bumps project version to 16.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread event/promise.lua Outdated
Comment thread event/promise.lua Outdated
Comment thread test/test_promise.lua Outdated
Comment thread README.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread event/promise.lua
Comment thread event/promise.lua Outdated
@Insality Insality merged commit 17518fe into main Apr 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants