A method call that returns to the caller immediately regardless of whether processing has completed. The results of processing are returned through another call on another thread. Asynchronous methods free the caller from having to wait until processing has finished.
브라우저 비동기 API: 일반화 목적으로 브라우저 API 호출들을 Deferred로 감싸는 것은 보통 좋은 생각이다.
Any browser asynchronous API: For normalization purpose, it is often a good idea to wrap the browser API calls as Deferred.ParaCrawl Corpus ParaCrawl Corpus
콜백 기반 비동기 API들을 위한 최고의 방법은 오류인 경우에 호출될 (적절한 에러정보를 인수로 가진) 함수를 두번째 인수로 지정하는 것이다. getData 호출은 아래처럼 될 것이다.
For callback based asynchronous APIs, the best practice is to have a second argument that takes a function that would be called in case of a failure with the appropriate error information as argument.ParaCrawl Corpus ParaCrawl Corpus
이벤트 기반 비동기 API의 경우, 개발자가 특정 객체(예: HTML 엘리먼트 또는 다른 DOM 객체들)에 이벤트 핸들러를 등록하고 나서 해당 동작을 호출한다.
In event-based asynchronous APIs, developers register an event handler for a given object (e.g. HTML Element or other DOM objects) and then call the action.ParaCrawl Corpus ParaCrawl Corpus