neallester / danake-sw

A persistence framework in Swift.
MIT License
3 stars 0 forks source link

Batch.commit() closure should include return status #5

Open neallester opened 6 years ago

neallester commented 6 years ago

Replace

public func commit (completionHandler: (() -> ())?)

with

public func commit (completionHandler: ((BatchResult) -> ()))

where BatchResult is an enum indicating whether the batch succeeded or timed out.