Skip to content

Commit bdee72b

Browse files
docs: add doc comments for public functions in vlib/context/empty.v (#26538)
1 parent 62801fc commit bdee72b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎vlib/context/empty.v‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import time
99
// An EmptyContext is never canceled, has no values.
1010
pub struct EmptyContext {}
1111

12+
// deadline returns none, since an EmptyContext has no deadline.
1213
pub fn (ctx &EmptyContext) deadline() ?time.Time {
1314
return none
1415
}
@@ -20,14 +21,17 @@ pub fn (ctx &EmptyContext) done() chan int {
2021
return ch
2122
}
2223

24+
// err returns none, since an EmptyContext is never canceled.
2325
pub fn (ctx &EmptyContext) err() IError {
2426
return none
2527
}
2628

29+
// value returns none, since an EmptyContext carries no values.
2730
pub fn (ctx &EmptyContext) value(key Key) ?Any {
2831
return none
2932
}
3033

34+
// str returns a string describing the Context.
3135
pub fn (ctx &EmptyContext) str() string {
3236
return 'unknown empty Context'
3337
}

0 commit comments

Comments
 (0)