spacekookie changed the topic of #qaul.net to: https://qaul.net - Internet independent, decentralised ad-hoc wireless communication application - Logs: https://freenode.irclog.whitequark.org/qaul.net
erictapen has quit [Ping timeout: 272 seconds]
erictapen has joined #qaul.net
<noracodes> spacekookie: you mentioned that you have a problem accessing "something that itself has to await (to lock a mutex)" - my goto would be to use try_lock() in the poll_fn closure and just exit with pending if the mutex is locked
<spacekookie> noracodes: oh I solved that, the code isn't uploaded yet though
erictapen has quit [Ping timeout: 258 seconds]
Morn_ has quit [Ping timeout: 265 seconds]
Morn_ has joined #qaul.net
Morn_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<spacekookie> The biggest problem I had was that the mutex.lock() future didn't implement pin/unpin
<spacekookie> Thus the required unsafe
<noracodes> related, spacekookie: https://www.youtube.com/watch?v=shtfSMTwKRw
<noracodes> a very useful discussion of that API
<spacekookie> Oh sweet! I knew they were gonna do a stream. I guess I'll look at that tomorrow
<spacekookie> Gonna sleep in a bit. CHeck out the stuff I queried you
<spacekookie> Night y'all!
<noracodes> will do. Good night!
frigginglorious has joined #qaul.net
Morn_ has joined #qaul.net
frigginglorious has quit [Read error: Connection reset by peer]
frigginglorious has joined #qaul.net
Morn_ has quit [Ping timeout: 272 seconds]
Morn_ has joined #qaul.net
Morn_ has quit [Ping timeout: 272 seconds]
Morn_ has joined #qaul.net
Morn_ has quit [Ping timeout: 272 seconds]
Morn_ has joined #qaul.net
Degi has quit [Ping timeout: 240 seconds]
Degi has joined #qaul.net
frigginglorious has quit [Ping timeout: 240 seconds]
infoverload_ has joined #qaul.net
infoverload has quit [Ping timeout: 272 seconds]
spacekookie has quit [*.net *.split]
Degi has quit [Ping timeout: 268 seconds]
Degi has joined #qaul.net
spacekookie has joined #qaul.net
erictapen has joined #qaul.net
infoverload has joined #qaul.net
infoverload_ has quit [Ping timeout: 272 seconds]
erictapen has quit [Quit: leaving]
infoverload has quit [Remote host closed the connection]
infoverload has joined #qaul.net
infoverload has quit [Remote host closed the connection]
<jess3jane> noracodes spacekookie: futures has a future aware mutex btw if the "wait for lock" comes up again
frigginglorious has joined #qaul.net
<spacekookie> jess3jane: I was using the async-std mutex
<jess3jane> ah
<spacekookie> jess3jane: I'm wondering if you have a good pattern on how to poll lot's of things in a loop, without having to worry about one of the poll's not returning anything blocking you from polling the rest
<spacekookie> I guess I don't actually want to do this in a loop, so instead just poll each endpoint individually?
<jess3jane> uhhhh i don't think there's a way if it blocks when it polls it blocks when it polls
<spacekookie> Hmm
<spacekookie> I guess maybe I could just spawn a task for each endpoint then. Because it's not like there's the overhead of a stack for each of them
<spacekookie> And if one has no inputs, it won't get woken anyway
erictapen has joined #qaul.net
<amanjeev> omg i just sent myself a patch via git send-email and i am so happy! going to try with --cover-letter --annotate after dinner
frigginglorious1 has joined #qaul.net
frigginglorious has quit [Ping timeout: 258 seconds]
frigginglorious1 is now known as frigginglorious
erictapen has quit [Ping timeout: 268 seconds]