static void assertNotMainThread() throws IllegalStateException {
		if (Looper.myLooper() == Looper.getMainLooper()) {
			throw new IllegalStateException("Cannot execute synchronous operation from the UI thread.");
		}
	}
Asserts that the synchronous method was not called from the UI thread.

@throws IllegalStateException when called from a UI thread.
ble/src/main/java/no/nordicsemi/android/ble/Request.java