Conversation
- Replace Python-centric page with language-neutral rewrite - Add TypeScript, Python, and Java examples for all sections - Add Map Function subsection under Method signature with per-language type signatures and parameter docs - Document MapResult (Java) vs BatchResult (TS/Python) difference - Document SKIPPED status in Java vs STARTED in TS/Python - Fix completion strategy tables in map.md and parallel.md (were collapsed by mdformat; fixed with mdformat-gfm tables extension) - Remove item_batcher from MapConfig docs (not implemented) - Remove ToC, Terminology, Key Features, Best Practices, Performance Tips, FAQ, Testing sections closes #19, closes #22, closes #74, closes #56, closes #93, closes #94, ref #96
dhegberg
reviewed
Apr 9, 2026
| concurrency, collects results as items complete, and checkpoints the outcome. | ||
|
|
||
| [← Back to main index](../index.md) | ||
| Each item runs in its own child context and checkpoints its result independently as it |
| ## Getting started | ||
|
|
||
| Here's a simple example of processing a collection: | ||
| Use map to apply the same operation to every item in a collection. Use |
There was a problem hiding this comment.
Does the collection need to be ordered given the way checkpoint ids are incremented?
| ``` | ||
|
|
||
| **Q: How do I access individual results?** | ||
| ## Completion strategies |
There was a problem hiding this comment.
This is used in both parallel and map, right? Should it be moved to a dedicated section to be referenced by both?
| Use `result.get_map()` to inspect the map operation: | ||
| Each item checkpoints its result on completion. Items that have not completed when the | ||
| map reaches its completion criteria remain with status `STARTED` (TypeScript and Python) | ||
| or `SKIPPED` (Java). |
There was a problem hiding this comment.
In parallel I don't think we call out this distinction and only reference STARTED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Issue #, if available:
closes #19, closes #22, closes #74, closes #56, closes #93, closes #94, ref #96
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.