Wait for option in module

21 views
Skip to first unread message

Cristiano Beviláqua

unread,
Nov 21, 2016, 8:48:06 AM11/21/16
to DynamoDb driver for Node.js
Does the module support the waitfor function currently available in the aws javascript sdk?

Thanks!

// Waits for tables to be come ACTIVE.  
// Useful for waiting for table operations like CreateTable to complete. 
var params = {
    TableName: 'table_name',
};
// Supports 'tableExists' and 'tableNotExists'
dynamodb.waitFor('tableExists', params, function(err, data) {
    if (err) console.log(err); // an error occurred
    else console.log(data); // successful response
});
Reply all
Reply to author
Forward
0 new messages