Skip to content

✨ feat: implement allSettled()#1

Open
rauhryan wants to merge 5 commits into
rr/all-settled-898from
rr/all-settled-898-impl
Open

✨ feat: implement allSettled()#1
rauhryan wants to merge 5 commits into
rr/all-settled-898from
rr/all-settled-898-impl

Conversation

@rauhryan
Copy link
Copy Markdown
Owner

Motivation

Addresses thefrontside#898 by adding an Effection analogue to Promise.allSettled().

This PR is stacked on top of upstream PR thefrontside#1149, which makes Result<T> part of the documented public API.

Approach

  • add allSettled() as a new combinator built from all() over box()-wrapped operations
  • return Effection Result<T> values instead of promise-style fulfilled / rejected records
  • export allSettled() from the public module surface
  • add tests covering success, failure, ordering, teardown, and type inference
  • update docs and AGENTS guidance to describe allSettled() semantics

…tside#1157)

The @effectionx/inline package exports a ./swc entry pointing to a
WASM binary build artifact. This file doesn't exist in git clones and
isn't parseable as TypeScript, causing the website build to crash with
a readTextFile ENOENT error.
@rauhryan rauhryan changed the title ✨ implement allSettled() ✨ feat: implement allSettled() Apr 23, 2026
cowboyd added 2 commits May 2, 2026 20:23
The www workflow was running `deno task dev`, which wraps the server in
@effectionx/watch. That watcher restarts the server when files change in
the working directory — including `www/built/`, where Staticalize writes
crawled pages. A restart mid-crawl returned 500 to in-flight requests,
causing intermittent failures on a different URL each run.

Run the server directly in CI; no watcher needed.
@rauhryan rauhryan force-pushed the rr/all-settled-898 branch 2 times, most recently from d1f564c to 98c30ba Compare May 8, 2026 10:30
* ✨ expose Result<T> as public API

* 🐛 wrap non-Error causes passed to Err()

* ♻️ tweak up, including doc fixes

---------

Co-authored-by: Charles Lowell <cowboyd@frontside.com>
@rauhryan rauhryan force-pushed the rr/all-settled-898-impl branch from 68b7a87 to 612a383 Compare May 11, 2026 14:21
@rauhryan rauhryan force-pushed the rr/all-settled-898-impl branch from 612a383 to 898f73e Compare May 11, 2026 14:32
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.

2 participants