Skip to content

Instantly share code, notes, and snippets.

@Mreyna3
Created May 26, 2019 20:28
Show Gist options
  • Save Mreyna3/905639d1be98c3a15ebacd5720366b39 to your computer and use it in GitHub Desktop.
Save Mreyna3/905639d1be98c3a15ebacd5720366b39 to your computer and use it in GitHub Desktop.
enqueue function
public func enqueue(transaction: Double){
if(shouldProcessBatch()){
//1
processBatch()
addToBatch(transaction: transaction)
}else{
//2
addToBatch(transaction: transaction)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment