powered by
If fun is not a function, an error is thrown.
fun
is_async(fun)
Function.
Logical scalar, whether fun is async.
Currently, it checks for the async attribute, which is set by async().
async
async()
# NOT RUN { f <- function(x) 42 af <- async(f) is_async(f) is_async(af) f() synchronise(dx <- af()) dx # }
Run the code above in your browser using DataLab