Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6030693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:04:30+00:00 2026-05-23T05:04:30+00:00

In a Groovy script, is the eachLine closure sufficient to keep a process from

  • 0

In a Groovy script, is the eachLine closure sufficient to keep a process from blocking due to a full buffer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:04:31+00:00Added an answer on May 23, 2026 at 5:04 am

    Of course it depends from the different complexities of the the two processes.

    I guess that one is the one that produces output, while the other one consumes it with eachLine. Then if the second one has enough CPU time to prevent the buffer from filling, you won’t have any block. Otherwise it will slowly/fastly fill until there is no room anymore.

    There is no general answer in your case since it depends from the processing done by eachLine and the one made by the other process which produces data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to extract a closure from a groovy script. I define the closure
What I want to do is invoke maven from a groovy script. The groovy
My question is about putting data elements (from groovy script) in the response in
Is it possible to listen to CTRL+C when a groovy script is run from
I'm loading a Groovy script/class from a remote server, creating a new instance, and
How can I call a native shell script from a Groovy / Grails Application?
I'm using HtmlUnit in a Groovy script to get a csv file from the
I have a groovy script with an unknown number of variables in context at
I have a groovy script that needs a library in a jar. How do
I am trying to connect a simple groovy script to the DB. Code: import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.