Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-31 Thread Alan Bateman
On Tue, 30 May 2023 17:31:54 GMT, Rémi Forax wrote: > One surprising thing is that Subtask.get() give less leeway to the owner > thread than to the other virtual threads so in onComplete() storing a Subtask > to use it later by the owner thread does not work well if join() is not > called yet.

Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-30 Thread Rémi Forax
On Thu, 25 May 2023 08:21:39 GMT, Alan Bateman wrote: >> This is the implementation of: >> >> - JEP 453: Structured Concurrency (Preview) >> - JEP 446: Scoped Values (Preview) >> >> For the most part, this is just moving code and tests. StructuredTaskScope >> moves to j.u.concurrent as a prev

Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-25 Thread Paul Sandoz
On Thu, 25 May 2023 08:21:39 GMT, Alan Bateman wrote: >> This is the implementation of: >> >> - JEP 453: Structured Concurrency (Preview) >> - JEP 446: Scoped Values (Preview) >> >> For the most part, this is just moving code and tests. StructuredTaskScope >> moves to j.u.concurrent as a prev

Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-25 Thread Paul Sandoz
On Thu, 25 May 2023 08:21:39 GMT, Alan Bateman wrote: >> This is the implementation of: >> >> - JEP 453: Structured Concurrency (Preview) >> - JEP 446: Scoped Values (Preview) >> >> For the most part, this is just moving code and tests. StructuredTaskScope >> moves to j.u.concurrent as a prev

Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-25 Thread Paul Sandoz
On Thu, 25 May 2023 08:21:39 GMT, Alan Bateman wrote: >> This is the implementation of: >> >> - JEP 453: Structured Concurrency (Preview) >> - JEP 446: Scoped Values (Preview) >> >> For the most part, this is just moving code and tests. StructuredTaskScope >> moves to j.u.concurrent as a prev

Re: RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]

2023-05-25 Thread Alan Bateman
> This is the implementation of: > > - JEP 453: Structured Concurrency (Preview) > - JEP 446: Scoped Values (Preview) > > For the most part, this is just moving code and tests. StructuredTaskScope > moves to j.u.concurrent as a preview API, ScopedValue moves to j.lang as a > preview API, and m