I am trying to run loadViews() after the pullData() completes and I am wondering what the best way of doing this is? I would like to set a 10 sec timeout on it as well so I
You can achieve like this :-
func demo(completion: (success: Bool) -> Void) { // code goes here completion(success: true) }