An alternate solution, as discussed in bug 1112195 is to simply add the synchronous functions that most people will want to use:
connection = mir_connect(...);
Though that suggests the existing functions like "mir_connect" change to something like "mir_async_connect" or "mir_background_connect".
The approach proposed here however is a nice middle-ground, not requiring duplicate functions to elegantly support both asynchronous and synchronous operation.
An alternate solution, as discussed in bug 1112195 is to simply add the synchronous functions that most people will want to use: _connect" .
connection = mir_connect(...);
Though that suggests the existing functions like "mir_connect" change to something like "mir_async_connect" or "mir_background
The approach proposed here however is a nice middle-ground, not requiring duplicate functions to elegantly support both asynchronous and synchronous operation.