summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-06-14 16:21:08 +1200
committerGitHub <noreply@github.com>2021-06-14 16:21:08 +1200
commit2792acc8f29c6ee1d04b57b7b70d43519a0ceda8 (patch)
treef34d853b85cac91a51cb2500c9c4b765433e3672 /doc
parent688b217706546c2bc9a0926de246dc29d0935261 (diff)
Add scheduler hook `Addrinfo.getaddrinfo`. (#4375)
Co-authored-by: Bruno Sutic <code@brunosutic.com>
Notes
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/fiber.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/fiber.md b/doc/fiber.md
index 840bebd188..9baab4e4d1 100644
--- a/doc/fiber.md
+++ b/doc/fiber.md
@@ -90,6 +90,13 @@ class Scheduler
def timeout_after(duration, klass, *arguments, &block)
end
+ # Resolve hostname to an array of IP addresses.
+ # This hook is optional.
+ # @parameter hostname [String] Example: "www.ruby-lang.org".
+ # @returns [Array] An array of IPv4 and/or IPv6 address strings that the hostname resolves to.
+ def address_resolve(hostname)
+ end
+
# Block the calling fiber.
# @parameter blocker [Object] What we are waiting on, informational only.
# @parameter timeout [Numeric | Nil] The amount of time to wait for in seconds.