Skip to content

Commit d19074a

Browse files
docs: add doc comment for EmptyContext.done() (#26531)
1 parent a87a4d7 commit d19074a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎vlib/context/empty.v‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub fn (ctx &EmptyContext) deadline() ?time.Time {
1313
return none
1414
}
1515

16+
// done returns a closed channel, since an EmptyContext can never be canceled.
1617
pub fn (ctx &EmptyContext) done() chan int {
1718
ch := chan int{}
1819
ch.close()

0 commit comments

Comments
 (0)