oryx.core.interpreters.harvest.call_and_reap
Stay organized with collections
Save and categorize content based on your preferences.
Transforms a function into one that additionally returns its sown values.
oryx.core.interpreters.harvest.call_and_reap(
f,
*,
tag: Hashable,
allowlist: Optional[Iterable[str]] = None,
blocklist: Iterable[str] = frozenset(),
exclusive: bool = False
)
Args |
f
|
a function to be transformed.
|
tag
|
a string tag; only sown values with tag will be reaped.
|
allowlist
|
an optional sequence of string names, which if provided will
enforce that only sows with names in the allowlist will be reaped.
|
blocklist
|
an optional sequence of string names, which if provided will
enforce that only no sows with names in the blocklist will be reaped.
|
exclusive
|
determines whether or not to execute in "exclusive" mode where
other tags are removed during execution.
|
Returns |
A new function that executes the original and returns its sown values as
an additional return value.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-24 UTC."],[],[]]