getResult: Generic function to retrieve result from asynchronous...

Description Usage Arguments Value Author(s) References See Also

Description

This function is intended to be used with an asynchronous callback handler. As events are generated, the callback handler is invoked. At the end of the event source, the managing function can return the results by invoking this function on the callback object. This works for CallbackResult-class objects.

This generic function can be extended to provide different ways to fetch/compute the result. The method for CallbackResult-class uses the information about which variable(s) to extract from the function's environment to find the appropriate value.

Usage

1
getResult(obj, ...)

Arguments

obj

the callback object. In our use, this is an object of class CallbackResult-class.

...

any additional arguments.

Value

An arbitrary R value.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://aspell.sourceforge.net http://www.omegahat.org

See Also

DocSpeller collectWords spellDoc


omegahat/Aspell documentation built on May 24, 2019, 1:50 p.m.