ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
Munto has quit [Ping timeout: 265 seconds]
Munto has joined #crystal-lang
Chillfox has joined #crystal-lang
<FromGitter> <perfecto25> hey guys quick question, is there a way to stop a fiber from a function, lets say I want to start TCP ports, 1-100, with a span of 10 ports at a time, ⏎ ⏎ Im spawning first 10 ports ⏎ ⏎ ```code paste, see link``` ... [https://gitter.im/crystal-lang/crystal?at=616cbdbe9d20982e4fc6e82c]
ur5us has joined #crystal-lang
hightower3 has quit [Ping timeout: 265 seconds]
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #crystal-lang
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #crystal-lang
<FromGitter> <Dan-Do> @perfecto25 you can use Channel
ur5us has quit [Ping timeout: 264 seconds]
oprypin has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
oprypin has joined #crystal-lang
dannyAAM has joined #crystal-lang
notzmv has quit [Remote host closed the connection]
notzmv has joined #crystal-lang
notzmv has quit [Read error: Connection reset by peer]
notzmv has joined #crystal-lang
Munto has quit [Ping timeout: 265 seconds]
<yxhuvud> Cancellation is not possible from the outside (yet?). I'd suggest setting timeouts so that your connection attempts will stop automatically after a while
ur5us has joined #crystal-lang
Chillfox has quit [Quit: Leaving]
Munto has joined #crystal-lang
Munto has quit [Ping timeout: 264 seconds]
Stephie- has joined #crystal-lang
notzmv has quit [Ping timeout: 245 seconds]
r0bby has quit [Ping timeout: 245 seconds]
r0bby has joined #crystal-lang
Stephie has quit [Ping timeout: 245 seconds]
notzmv has joined #crystal-lang
Munto has joined #crystal-lang
ur5us has quit [Ping timeout: 245 seconds]
Munto_ has joined #crystal-lang
Munto has quit [Ping timeout: 260 seconds]
<FromGitter> <jrei:matrix.org> You can append the created sockets in an Array, or Deque, along with the port (like `Tuple(Int32, TCPServer)`). ⏎ Then shift to remove the last one and call close, the fibers will end because the blocking `socket.accept` will end.
<FromGitter> <jrei:matrix.org> appending to the array can be done in the main fiber, then only spawn new ones for `server.accept`
Munto_ has quit [Ping timeout: 258 seconds]
Munto_ has joined #crystal-lang
Munto_ has quit [Ping timeout: 260 seconds]
Munto has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 258 seconds]
taupiqueur has joined #crystal-lang
Munto has quit [Ping timeout: 245 seconds]
taupiqueur has quit [Ping timeout: 252 seconds]
Munto has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Remote host closed the connection]
<FromGitter> <jwaldrip:matrix.org> ASDF now has crystal 1.2 support.
<riza> @jwaldrip does that work with the m1 flavor of the build?
<FromGitter> <jwaldrip:matrix.org> Yep
<riza> fantasti
<FromGitter> <jwaldrip:matrix.org> ``````
<raz> ohh, m1 support has landed?
<raz> i hadn't followed in a while
<raz> (but just been watching the apple keynote... the new m1's look ridiculous)
ur5us has joined #crystal-lang
Munto has quit [Ping timeout: 265 seconds]
Munto has joined #crystal-lang
Munto has quit [Ping timeout: 260 seconds]
Flipez has quit [Changing host]
Flipez has joined #crystal-lang
<FromGitter> <jrei:matrix.org> They can still push on the GPU side. CPU-wise, they are reaching limits since some time now
Munto has joined #crystal-lang
Munto has quit [Ping timeout: 260 seconds]
Munto has joined #crystal-lang
Chillfox has joined #crystal-lang