This is a simple proof of concept for testing kscript and coroutines.
Simply finds all network interfaces on the host and attempts to ping each host on subnet with range /24.
The networking portion of the code is a best-case effort due to the underlying implementation of the networking libraries. It works ok enough for a proof of concept, but don't use it for anything serious.
Assuming you already have sdkman installed:
sdk install kotlin
sdk install kscript
kscript App.kts
kscript --idea App.kts
Including screenshot since I had some troubles with this initially. "kscript-annotations" on the bottom is what is necessary, the rest are added within the script files themselves or by kscript.