Skip to content

sync: add WaitTimeout method to Cond #9578

Closed
@mei-rune

Description

@mei-rune

can add func (c *Cond) WaitTimeout(timeout time.Duration) bool for sync.Cond,

example:
...
if !this.c.WaitTimeout(10 * time.Second) {
return errors.New("time out")
}
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions