Is record.set synchronous or asynchronous? If I want to be sure that code I put after record.set is executed when document is completely updated should I wrap my code with record.whenReady(function() {...})?
Consider the code looks like:
var record = ds.record.getRecord(`table/${id}`);
record.whenReady(function () {
record.set('field', 'value');
// do I need whenReady here?
// code that should be executed when document is updated
})