mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
14 lines
285 B
C++
14 lines
285 B
C++
#include"Boss/Shutdown.hpp"
|
|
#include"Boss/concurrent.hpp"
|
|
#include"Ev/Io.hpp"
|
|
#include"Ev/concurrent.hpp"
|
|
|
|
namespace Boss {
|
|
|
|
Ev::Io<void> concurrent(Ev::Io<void> io) {
|
|
return Ev::concurrent(std::move(io).catching<Boss::Shutdown>([](Boss::Shutdown _) {
|
|
return Ev::lift();
|
|
}));
|
|
}
|
|
|
|
}
|