--- deliantra/server/ext/map-scheduler.ext 2007/01/05 19:12:01 1.16 +++ deliantra/server/ext/map-scheduler.ext 2007/01/05 20:04:02 1.17 @@ -9,7 +9,7 @@ our $SAVE_TIMEOUT = 20; # save maps every n seconds our $SAVE_INTERVAL = 0.1; # save at max. one map every $SAVE_INTERVAL -cf::coro { +cf::async_ext { $Coro::current->prio (Coro::PRIO_MIN); # load the header of swapped-out maps. # this is not a correctness issue, it simply saves diskspace @@ -29,7 +29,7 @@ #TODO: should also preload random maps... }; -our $SCHEDULER = cf::coro { +our $SCHEDULER = cf::async_ext { while () { Coro::Timer::sleep $SCHEDULE_INTERVAL; @@ -75,7 +75,7 @@ on_enter => sub { my ($map, $pl) = @_; - (Coro::async_pool { + (cf::async { my @diag; # diagonal neighbours for (0 .. 3) {