matiaslina / Matrix-Client

Matrix client for Raku
Artistic License 2.0
13 stars 3 forks source link

bot.p6 example should not do sleep(10) #10

Open AlexDaniel opened 6 years ago

AlexDaniel commented 6 years ago

See this: https://github.com/matiaslina/perl6-matrix-client/blob/0a36a8735d99a5aafac7a522affccf403efa6e28/examples/bot.p6#L54

I'm not sure why it was added, IMO it shouldn't be there. I know very little about matrix, but I think that this loop can be written without sleeping (it is using long polling, right?). Perhaps it's a good idea to stick sleep 0.1 in there just in case, but generally it shouldn't be needed.