Skip to content

Commit e58f36b

Browse files
committed
Document that Timeout can handle Floats
1 parent 50d0e7f commit e58f36b

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)