Home  Contents

resolver:result

Rawio Core4 Lua Event System

SYNOPSIS

functionresolver:result(question, success, result_or_error) ... end

DESCRIPTION

Callback that must be provided by the application.

On completion of a query, successful or not, this method is called. This callback is always called from within event:poll(), even on a cache hit.

The method is called with the arguments:

question Original string that was to be looked up.
success true for success, false for failure.
result_or_error On success, answer to query. On failure, an error message.

SEE ALSO

rawio.resolver() resolver:resolve()