When adding the
user parameters for the EntryRoutes in chapter 10, I noticed that the
getEntries function was the only one that had a
(() -> Void) -> Void form.
When I checked the included code for the book, I noticed that the
func getEntries was the same
() -> Void form as the rest of the routes.
Is this an oversight? I guess I’m a bit confused as to what this is doing. I realize that it is an escaping closure, but all other functions that have the first form seem to be in the
When would it be appropriate in Kitura to use each of the forms?