diff --git a/include/llmr/platform/platform.hpp b/include/llmr/platform/platform.hpp index 4aa2fb571..41144fa63 100644 --- a/include/llmr/platform/platform.hpp +++ b/include/llmr/platform/platform.hpp @@ -14,8 +14,7 @@ class Tile; namespace platform { -// Restarts painting. This could for example trigger the event loop of the -// controlling application. +// Restarts painting. This could for example trigger the event loop of the controlling application. void restart(void *obj); struct Response { @@ -23,6 +22,7 @@ struct Response { std::string body; }; +// Makes an HTTP request of a URL on a background thread, calls a function with the results on the same thread, and finally calls a callback function on the main thread. void request_http(std::string url, std::function background_function, std::function foreground_callback); // Returns a relative timestamp in seconds. This value must be monotonic.