Enable Asynchronous cljs.js/*eval-fn*

Description

In bootstrapped ClojureScript cljs.js/eval-fn receives javascript source and evaluates it, returning a result. In some contexts it is necessary to evaluate the js asynchronously, can we add this functionality?

Environment

None

Activity

Show:

David NolenFebruary 25, 2022 at 4:27 PM

This just doesn't seem that useful.

David NolenAugust 16, 2015 at 6:16 AM

Interesting. I don't think this is a common use case, most JS engines provide synchronous eval. Not interested in any breaking changes but would be happy to take a patch that gives you the behavior you want via an option flag, :async-eval.

importAugust 15, 2015 at 4:08 AM

Comment made by: whamtet

My usecase is an asynchronous eval function

There must be other people who have situations like this.

David NolenAugust 15, 2015 at 1:49 AM

This ticket needs more rationale. Can you elaborate on the usecase?

Fixed

Details

Assignee

Reporter

Affects versions

Priority

Created August 14, 2015 at 4:18 PM
Updated February 25, 2022 at 4:27 PM
Resolved February 25, 2022 at 4:27 PM