No description, website, or topics provided.
Perl 6
Switch branches/tags
Nothing to show
Latest commit 275aac5 May 3, 2017 @skaji committed on GitHub Merge pull request #2 from samcv/SPDX-license
Use SPDX identifier in license field of META6.json
Failed to load latest commit information.
lib/MetaCPAN return Empty Aug 13, 2016
t init Aug 7, 2016
.gitignore oops Aug 7, 2016
.travis.yml init Aug 7, 2016
LICENSE init Aug 7, 2016
META6.json Use SPDX identifier in license field of META6.json Apr 27, 2017 init Aug 7, 2016
example.p6 use Supply.on-demand Aug 7, 2016

Build Status


MetaCPAN::Favorite - consume MetaCPAN recent favorite


use MetaCPAN::Favorite;

my $metacpan = => "./cache.txt");
my $favorite = Supply.interval(60).map({ $metacpan.Supply }).flat;

react {
  whenever $favorite -> %fav {
    my $name = %fav<name>; # Plack
    my $user = %fav<user>; # SKAJI (the user who favorites Plack, can be undef)
    my $date = %fav<date>; # 2016-08-05T07:49:15.000Z
    my $url  = %fav<url>;  #

    $user //= "anonymous";
    tweet("$name++ by $user, $url"); # or, whatever you want


MetaCPAN::Favorite helps you consume MetaCPAN recent favorite page.


I want to learn how to do concurrency and asynchronous programming in Perl6. More precisely, I want to learn how to use Supply, Channel, Promise, react, whenever, supply.... in Perl6.

Your advice will be highly appreciated.


Shoichi Kaji


Copyright 2016 Shoichi Kaji

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.