From d57b1b7007594f65d4c15eaaec3e9be69ce2194f Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 31 May 2024 17:50:08 +0200 Subject: [PATCH] Make Site.wait public Changelog: changed --- src/wobsite.inko | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wobsite.inko b/src/wobsite.inko index 3f9ddaa..aca798b 100644 --- a/src/wobsite.inko +++ b/src/wobsite.inko @@ -530,7 +530,11 @@ class pub Site { }) } - fn move wait -> Result[Nil, Errors] { + # Waits for the site to be built, returning once all pages have been + # processed. + # + # If one or more pages failed to build, a `Result.Error` is returned. + fn pub move wait -> Result[Nil, Errors] { let errors = Errors([]) while @pending > 0 {