Mojo::UserAgent::Role::PromiseClass now exists on CPAN to play with. Promises returned by get_p can now be automatically blessed into whatever class you want by just specifying it once on the UserAgent
$ua = Mojo::UserAgent->new(...) ->with_roles('+PromiseClass') ->promise_roles('+Feature'); # add promise features to UserAgent $ua->get_p(...)->feature(sub{...}); # and they show up on every get_p call as opposed to having to type $ua->get_p(...)->with_roles('+Feature')->feature(sub{...}) everywhere. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/c07439ab-0632-406e-b495-a71347f00606%40googlegroups.com.