Commit Detail
Commit adbf24c
Add IoContext::tryCurrent() A common pattern throughout the codebase is to check if there is a current IoContext via IoContext::hasCurrent() before calling IoContext::current(). This change introduces IoContext::tryCurrent() which returns a Maybe<IoContext&> to simplify this pattern and eliminate and remove redundant checks that are redundantly redundant.
Files changed
21 files changed~21 modified