async fn answer<T: Serialize + Send + 'static>( read: impl FnOnce() -> Result<T, String> + Send + 'static, ) -> Response
blocking, answering its result as JSON.
blocking