DK
Size: a a a
DK
DK
E
let actions = [ … ]
func performAction(at index: Int) {
guard actions.count > index else { return }
action(completion: { performAction(at: index + 1) })
}
performAction(at: 0)
AK
AK
E
E
AK
loadAvatar(userId, completion: { performAction(at: index + 1) })
AK
NN
E
S
NN
E
S
AK
S