All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

ClojureScript 1.12.145 Adds Async/Await Interop via ^:async Hint

By

Borkdude

23d ago· 1 min readenNews

Summary

ClojureScript 1.12.145 has been released, introducing support for ECMAScript 2016 async/await interop. The new ^:async hint allows the ClojureScript compiler to emit JavaScript async functions, enabling developers to use await within ClojureScript functions. This feature also works with testing via deftest. The release focuses on enhanced interoperability between ClojureScript and modern JavaScript.

Key quotes

· 3 pulled
Now that ClojureScript targets ECMAScript 2016 we can carefully choose new areas of enhanced interop.
Starting with this release, hinting a function as ^:async will make the ClojureScript compiler emit an JavaScript async function.
This also works for tests.
Snippet from the RSS feed
Now that ClojureScript targets ECMAScript 2016 we can carefully choose new areas of enhanced interop. Starting with this release, hinting a function as ^:async will make the ClojureScript compiler emit an JavaScript async function:

You might also wanna read