From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use strict;
use Test::Requires 'threads';
use_ok "Algorithm::ConsistentHash::Ketama";
my $x = Algorithm::ConsistentHash::Ketama->new;
my @threads;
for (1..5) {
push @threads, threads->create(sub{
note( "spawned thread : " . threads->tid() );
});
}
foreach my $thr (@threads) {
note( "joining thread : " . $thr->tid );
$thr->join;
}
ok(1);
done_testing();