Callback invoked once an asynchronous operation completes.
An expected `result` which contains string describing an error if the operation was not successful, empty otherwise.