{
  "id": "fn-net-stop",
  "dataComponent": "net",
  "heading": {
    "title": "stop",
    "badges": [
      "Network",
      "ASYNC"
    ]
  },
  "synopsis": "Stops a previously created asynchronous ping by task ID.",
  "codeBlocks": [
    "extend(\"net\")\\n\\n# Usage with net:ping => returns a task ID\\npingId = net:ping(\"127.0.0.1\", sput)\\n\\n# Then, to stop that ping\\nnet:stop(pingId)\\n\\n# net:stop expects exactly one argument (the token_id returned by net:ping)."
  ],
  "notes": [
    "After calling net:ping(...), you get back an integer task ID. Pass that same ID to net:stop to cancel the ongoing ping.",
    "If no ping with that ID is found, net:stop does nothing (silently).",
    "This function only affects tasks launched by net:ping in the net plugin."
  ]
}
