Better Async Handling

January 15, 2025

The 1.4.0 version enhances JavaScript’s asynchronous capabilities, making promises and timeouts more robust and easier to manage.

Major Features

  • Promise.withResolvers() – A new method that simplifies promise management by providing direct access to resolve and reject functions.

  • Timeout Control with AbortSignalsetTimeout() now integrates with AbortSignal, allowing developers to cancel timeouts dynamically.

Performance Enhancements

  • Optimized Event Loop Scheduling – Ensuring smoother execution of asynchronous tasks.

  • Reduced Garbage Collection Impact on Animations – Making UI animations and real-time applications more fluid.

Bug Fixes

  • Clearer Async/Await Stack Traces – Debugging async code is now significantly easier.

  • Improved JSON ParsingJSON.parse() now correctly handles large numbers, avoiding data loss.

Get Template for free

Get Template for free

Get Template for free