call_with_callback: Call 'func' and then call 'callback' with the result

call_with_callbackR Documentation

Call func and then call callback with the result

Description

callback will be called with two arguments, the first one will the error object if func() threw an error, or NULL otherwise. The second argument is NULL on error, and the result of func() otherwise.

Usage

call_with_callback(func, callback, info = NULL)

Arguments

func

Function to call.

callback

Callback to call with the result of func(), or the error thrown.

info

Extra info to add to the error object. Must be a named list.


pkgcache documentation built on July 26, 2023, 5:44 p.m.