private void requestResponseThread(WriteToken token, String str, StringListCallback callback) { writeToPipe(token, str); String response = waitForResponse(); List <String> formattedResponse = formatResponse(response); callback(formattedResponse); }
public void requestGlobalImageSources(StringListCallback callback) { Thread thread = new Thread(() => requestResponseThread(WriteToken.REQUEST_GLOBAL_IMAGE_SOURCES, "", callback)); thread.Start(); }