deferred calling implemented;
changed callback args order (onResult first, yield second);
error handling improved;
sample adjusted;