whenUserSignsOut
Returns an object representing a deferred or asynchronous operation that resolves when the user signs out.
Declaration
Promise< Undefined, CloudKit.CKError > whenUserSignsOut();Return Value
A Promise object that resolves to Undefined when the user signs out, or rejects to a CKError object.
Discussion
Use the whenUserSignsOut method to call a function when the user signs out.
myContainer.whenUserSignsOut().then(function() {
// The user signed out
});