diff --git a/examples/timeouts/timeouts.hash b/examples/timeouts/timeouts.hash index 8fbb39d..82f34b7 100644 --- a/examples/timeouts/timeouts.hash +++ b/examples/timeouts/timeouts.hash @@ -1,2 +1,2 @@ -fb913ae361c41095a39bb3fa0c5e9dcd54ec840e -4oOz0j29MJ6 +79963f30cb3ca93d559a409e3ded40c2bb64df66 +gyr0NbVKBVf diff --git a/public/timeouts b/public/timeouts index 0d1854d..b4d14e7 100644 --- a/public/timeouts +++ b/public/timeouts @@ -44,7 +44,7 @@ elegant thanks to channels and select.

- +
package main
 
@@ -103,7 +103,7 @@ channel is never read.

Here’s the select implementing a timeout. -res := <-c1 awaits the result and <-Time.After +res := <-c1 awaits the result and <-time.After awaits a value to be sent after the timeout of 1s. Since select proceeds with the first receive that’s ready, we’ll take the timeout case