On https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.24.1/compute/operation?method=onComplete
operation.onComplete(function(err, metadata) {
if (err.code === 'OPERATION_INCOMPLETE') {
// The operation is not complete yet. You may want to register another
// `onComplete` listener or queue for later.
}
if (!err) {
// Operation complete!
}
});
This example doesn't really show me how I'm supposed to continue attaching handlers (and I would actually need to redesign the flow of my code to make this work).
Can we update the example to show exactly what "the right way" to do this is?
On https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.24.1/compute/operation?method=onComplete
This example doesn't really show me how I'm supposed to continue attaching handlers (and I would actually need to redesign the flow of my code to make this work).
Can we update the example to show exactly what "the right way" to do this is?