Skip to content

Commit 856a50b

Browse files
ianksRobert Mosolgo
andauthored
Update guides/dataloader/overview.md
Co-authored-by: Robert Mosolgo <rmosolgo@github.com>
1 parent 19a0fba commit 856a50b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guides/dataloader/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ At a high level, `GraphQL::Dataloader`'s usage of `Fiber` looks like this:
3333
- `GraphQL::Dataloader` takes the first paused Fiber and resumes it, causing the `GraphQL::Dataloader::Source` to execute its `#fetch(...)` call. That Fiber continues execution as far as it can.
3434
- Likewise, paused Fibers are resumed, causing GraphQL execution to continue, until all paused Fibers are evaluated completely.
3535

36+
Whenever `GraphQL::Dataloader` creates a new `Fiber`, it copies each pair from `Thread.current[...]` and reassigns them inside the new `Fiber`.
37+
3638
## Getting Started
3739

3840
To install {{ "GraphQL::Dataloader" | api_doc }}, add it to your schema with `use ...`, for example:

0 commit comments

Comments
 (0)