astahlman / ob-async

Asynchronous src_block execution for org-babel
343 stars 32 forks source link

Making async advice respect PARAMS containing `:async` #74

Open ghost opened 3 years ago

ghost commented 3 years ago

The function org-babel-execute-src-block has a third argument PARAM, which enable the following

Optionally supply a value for PARAMS which will be merged with the header arguments specified at the front of the source code block.

However, this

(org-babel-execute-src-block nil nil '((:async)))

does not run the block as async. Digging into it that is because we bail out early if the header argument :async is missing from INFO. This PR adds support for also looking for :async in PARAMS.