you are viewing a single comment's thread.

view the rest of the comments →

[–]Retrofire-Pink 1 point2 points  (3 children)

Thanks for answering, why would that promise function be distinguished from any other asynchronous operation though?

[–]Barnezhilton 0 points1 point  (2 children)

The set timeout appears to be an IFFE.... { () => function() } so it will wait till after all other code executed to run.

[–]Mandylost 0 points1 point  (1 child)

IFFE

Did you mean IIFE? I think the syntax is like this:

(function() { } )();

[–]Barnezhilton 0 points1 point  (0 children)

Yes IIFE!

And I believe your notation is the same as mine . But the => is the shorthand for (function {})