| 5683 | } |
| 5684 | |
| 5685 | inline void AsyncWorker::OnOK() { |
| 5686 | if (!_callback.IsEmpty()) { |
| 5687 | _callback.Call(_receiver.Value(), GetResult(_callback.Env())); |
| 5688 | } |
| 5689 | } |
| 5690 | |
| 5691 | inline void AsyncWorker::OnError(const Error& e) { |
| 5692 | if (!_callback.IsEmpty()) { |