Skip to content

Reject synchronous batch callback failures - #16

Closed
simPod wants to merge 2 commits into
masterfrom
fix/synchronous-batch-throw
Closed

Reject synchronous batch callback failures#16
simPod wants to merge 2 commits into
masterfrom
fix/synchronous-batch-throw

Conversation

@simPod

@simPod simPod commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Convert synchronous batch callback throws into rejected load promises.
  • Reject every queued load through the existing whole-batch failure path.
  • Cache promises before immediate dispatch so failed non-batched loads can retry.

Motivation

A callback that threw before returning a promise escaped dispatch and could leave queued promises unresolved or cache a failed immediate load. The current master Throwable contract now handles both Exception and Error consistently.

@simPod
simPod force-pushed the fix/throwable-values branch from b77d6db to f06ce5e Compare August 18, 2026 06:36
@simPod
simPod force-pushed the fix/synchronous-batch-throw branch from edbfcd6 to 795227f Compare August 18, 2026 07:41
@simPod
simPod changed the base branch from fix/throwable-values to master August 18, 2026 07:41
@simPod simPod closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant