Skip to content

Commit 7efd8e6

Browse files
authored
Merge pull request #4505 from amomchilov/timeout-Float
Document that Timeout can handle Floats
2 parents 50d0e7f + e58f36b commit 7efd8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/schema/timeout.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def execute_field(query:, field:, **_rest)
9090
# The default implementation returns the `max_seconds:` value from installing this plugin.
9191
#
9292
# @param query [GraphQL::Query] The query that's about to run
93-
# @return [Integer, false] The number of seconds after which to interrupt query execution and call {#handle_error}, or `false` to bypass the timeout.
93+
# @return [Numeric, false] The number of seconds after which to interrupt query execution and call {#handle_error}, or `false` to bypass the timeout.
9494
def max_seconds(query)
9595
@max_seconds
9696
end

0 commit comments

Comments
 (0)