thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "owen hay (JIRA)" <>
Subject [jira] [Created] (THRIFT-4179) sendSynchronousRequest is now technically deprecated
Date Thu, 20 Apr 2017 18:50:04 GMT
owen hay created THRIFT-4179:

             Summary: sendSynchronousRequest is now technically deprecated
                 Key: THRIFT-4179
             Project: Thrift
          Issue Type: Dependency upgrade
          Components: Cocoa - Compiler, Cocoa - Library
            Reporter: owen hay

iOS 9 marks the deprecation of the sendSynchronousRequest API.  There is a new setup for sending
asynch http requests via the NSSession API.  This will break thrift generated Cocoa because
you rely on bubbling up NSExceptions after a blocking request.  Now the approved pattern has
changed to a callback oriented architecture.  There would likely be changes required to both
compiler and library in order to accomodate this.  You could also just stitch in a synchronous
blocking call using a semaphore block like detailed here:

But that's not really in the spirit of why apple is deprecating synch requests. 

This message was sent by Atlassian JIRA

View raw message