• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / async / 857
77%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 06:54AM UTC
Jobs 1
Files 154
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2026 06:51AM UTC coverage: 77.046% (-0.04%) from 77.087%
857

push

github

Guest0x0
fix(js): keep scheduling rounds after Promise::from_async

Promise::from_async drove the spawned coroutine with
@coroutine.reschedule(), which runs a single round of ready coroutines
and never schedules a follow-up. When from_async is the only thing
driving the event loop (e.g. MoonBit code exported to a JavaScript
host such as Cloudflare Workers), any coroutine that becomes ready
during that round is left sitting in the run queue and the returned
promise never settles.

Call @event_loop.reschedule() instead, which chains a setTimeout(0)
round while immediately-ready tasks remain, matching how every other
JS entry point (promise resolution callbacks, timers) re-enters the
scheduler.

1 of 1 new or added line in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

3719 of 4827 relevant lines covered (77.05%)

11578.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
75.0
-10.0% src/internal/event_loop/network.mbt
Jobs
ID Job ID Ran Files Coverage
1 857.1 16 Jul 2026 06:54AM UTC 154
77.05
GitHub Action Run
Source Files on build 857
  • Tree
  • List 154
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9cb323a3 on github
  • Prev Build on main (#855)
  • Next Build on main (#859)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc