… | |
… | |
2229 | sub main { |
2229 | sub main { |
2230 | # we must not ever block the main coroutine |
2230 | # we must not ever block the main coroutine |
2231 | local $Coro::idle = sub { |
2231 | local $Coro::idle = sub { |
2232 | Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d# |
2232 | Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d# |
2233 | (async { |
2233 | (async { |
2234 | warn "BP1\n";#d# |
|
|
2235 | Event::one_event; |
2234 | Event::one_event; |
2236 | warn "BP2\n";#d# |
|
|
2237 | })->prio (Coro::PRIO_MAX); |
2235 | })->prio (Coro::PRIO_MAX); |
2238 | }; |
2236 | }; |
2239 | |
2237 | |
2240 | cfg_load; |
2238 | cfg_load; |
2241 | db_load; |
2239 | db_load; |