Skip to content

Conversation

@PauBenetPrat
Copy link

No description provided.

* To know the block is finished the then() must be called in the async block
*/
public func eachAsync(_ body:(_ element:Element, _ index:Int, _ then:@escaping()->Void) -> Void, allFinished:@escaping(()->Void)){
public func eachAsync(_ body:(_ element:Element, _ index:Int, _ then:@escaping()->Void) -> Void, allFinished:@escaping(()->Void), delayFactor:Float=100){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

millor posar el delay factor davant ja que sino no es pot fer els trailing clousures
també li treuria la paraula factor de la variable, amb delay ja s'enten no?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delayFactor perquè no és un delay, i ho he posat darrere el then perquè com que té un valor per defecte no haver-lo d'omplir ni modificar el codi de les apps 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants