You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/04/05 01:35:46 UTC

[GitHub] [beam] ryanthompson591 commented on a diff in pull request #17272: Cleanup docs on Shared.

ryanthompson591 commented on code in PR #17272:
URL: https://github.com/apache/beam/pull/17272#discussion_r842262925


##########
sdks/python/apache_beam/utils/shared.py:
##########
@@ -55,18 +50,17 @@ def process(self, element):
       yield self._giant_list[element]
 
   p = beam.Pipeline()
-  shared_handle = shared.Shared()
   (p | beam.Create([2, 4, 6, 8])
-     | beam.ParDo(GetNthStringFn(shared_handle)))
+     | beam.ParDo(GetNthStringFn()))
 
 
 Real-world uses will typically involve using a side-input to a DoFn to

Review Comment:
   This documentation is still confusing to me.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org