• Post Reply Bookmark Topic Watch Topic
  • New Topic

How does one construct the delegate / response handler pattern as used in HTTPBuilder?  RSS feed

 
joseph beuckman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to write an asynchronous function that accepts a closure with handlers like HTTPBuilder.request does. How is the function written?

When I call the function, it will look like this:


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!