Examples of using A callback function in English and their translations into Japanese
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
Receive a mail( register a callback function).
When using Promises, for example,make sure not to pass a callback function when calling the API.
Sort() can also take a callback function to determine how array elements are compared.
For example,you can rewrite the promise code in Executing Commands using a callback function as below.
You couldn't simply link a callback function to it like button widget.
The Timers API allows modules tocreate timers with precision duration down to milliseconds and a callback function.
The edit function takes a callback function as a parameter.
A callback function defined in failure will be called when an error occurs. If you are using Promises, a catch block will be called.
You can receive the responses with a callback function passed to the then() function. .
Then push a callback function into the array that should be executed when AMP is ready".
Likewise, getArticleWithCache() has been changed so that it will expect a callback function as the second argument.
The third argument done is a callback function for finishing asynchronous server code.
The interaction with NDIS is asynchronous as well: events like the arrival of a new packet are notified to NPF through a callback function Packet_tap() in this case.
The third argument done is a callback function for returning the result of the asynchronous server code to the client.
What happens after the user finished the puzzle(you can specify a callback function which gets the game duration passed).
Get() method specifies a callback function that will be invoked whenever there isan HTTP GET request with a path('/') relative to the site root.
Keep in mind that the example code starts in the middle of a callback function(called when RippleAPI finishes connecting).
For unknown_host_cb, specify a callback function that performs processing of an unknown SSH host key, but right now it is set to continue the connection unconditionally.
Receiving Push Message andDelaying Command Execution You can set a callback function for checking received push messages in the SDK.
These routing methods specify a callback function(sometimes called"handler functions") called when the application receives a request to the specified route(endpoint) and HTTP method.
The DataURI method below accepts a callback function, this function will then be passed the base64 data URI of the screenshot or capture once it has been rendered allowing your JavaScript application even more control over the capture.
Following initialization, onload and onerror handlers are registered to a callback function to handle the response returned from the remote server.
This is simpler to use than setting up a callback function on a raw weak reference, since the module automatically ensures that the finalizer remains alive until the object is collected.
Allocating Resource for Parsing JSON Any task requesting to parseJSON The thing program can have a callback function to allocate the necessary resources for parsing JSON tokens.
The Intersection Observer API lets code register a callback function that is executed whenever an element they wish to monitor enters or exits another element(or the viewport), or when the amount by which the two intersect changes by a requested amount.
Whether you're using the viewport or some other element as the root, the API works the same way,executing a callback function you provide whenever the visibility of the target element changes so that it crosses desired amounts of intersection with the root.
RequestPermission(); The method also optionally accepts a callback function that is called once the user has responded to the request to display permissions as seen in the second else… if block below.
简介 Libevent is a library that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.