We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, i had problem with parallelism on this code (it block my fibers on it, and CPU utilization was on ~1%)
def run: ZIO[Any, Throwable, Unit] = { ipStream.mapZIOParUnordered(100000) { for { ipaddr <- InetAddress.byName(ip.toString) r <- ipaddr.isReachable(10000) _ <- if(r) Console.printLine(ip) else ZIO.none } yield () }.runDrain }
can you add new or edit current behavior of isReachable
def run: ZIO[Any, Throwable, Unit] = { ipStream.mapZIOParUnordered(100000) { ip => for { ipaddr <- InetAddress.byName(ip.toString) r <- ZIO.blocking(ipaddr.isReachable(10000)) _ <- if(r) Console.printLine(ip) else ZIO.none } yield () }.runDrain }
The text was updated successfully, but these errors were encountered:
From Discord I understood that the request is to make InetAddress.byName and InetAddress.isReachable run on the blocking threadpool.
Sorry, something went wrong.
or add a new method out of box for it
is you accept it, can i add it to this zio-nio project?
No branches or pull requests
Hello, i had problem with parallelism on this code (it block my fibers on it, and CPU utilization was on ~1%)
can you add new or edit current behavior of isReachable
The text was updated successfully, but these errors were encountered: