 		{
 			alertController.addAction(UIAlertAction(title: option as? String, style: .default) { action in
 				selection = action.title
-				self.alertHandlingQueue.resume()
+				self.alertHandlingSemaphore.signal()
 			})
 		}
 

	var rememberedSyncClippings:Bool = false

	let pasteboardInteractionQueue = DispatchQueue(label: "com.Flycut.pasteboardInteractionQueue")
	let alertHandlingQueue = DispatchQueue(label: "com.Flycut.alertHandlingQueue")
	let defaultsChangeHandlingQueue = DispatchQueue(label: "com.Flycut.defaultsChangeHandlingQueue")




			// topController should now be your topmost view controller

			// Transform the asynchronous UIAlertController into a synchronous alert by waiting, after presenting, on a semaphore that is initialized to zero and only signaled in the selection handler.

			DispatchQueue.main.async {
				topController.present(alertController, animated: true)
			}
			alertHandlingSemaphore.wait() // To wait for queue to resume.
		}

		return selection
