Giter Club home page Giter Club logo

Comments (6)

rotty3000 avatar rotty3000 commented on August 18, 2024 1

I think what we should actually do is make the executor rule use the PromiseFactory so that it returns promises instead of futures.

from osgi-test.

bjhargrave avatar bjhargrave commented on August 18, 2024

Actually, the down side of this is that we may use a different version of promises from the one used by the user. Perhaps it is better that we don't require any OSGi API in our test support implementation?

from osgi-test.

rotty3000 avatar rotty3000 commented on August 18, 2024

perhaps you're right

from osgi-test.

rotty3000 avatar rotty3000 commented on August 18, 2024

Closing since I think this won't happen and I've seen not strong need for it.

from osgi-test.

kriegfrj avatar kriegfrj commented on August 18, 2024

I'm writing a test at the moment in which I'm trying to initiate concurrent method calls to check that my read-write locking mechanism is doing the right thing. I've been doing it by manually starting threads, but then I have to be concerned about trying to stop them all at the end of the test. It occurred to me that something like an ExecutorExtension would be useful for that - I can simply schedule all the threads as background threads and the extension will take care of stopping them all for me. The only thing is that it doesn't seem to properly belong in "osgi" test, as such an extension is not OSGi-specific. But I wouldn't know where else to put it at the moment.

Are we happy for it to live in osgi-test?

from osgi-test.

bjhargrave avatar bjhargrave commented on August 18, 2024

For an executor, you can close it when the test ends. But you will also need a way to signal to each thread to terminate. There is no way to generally and reliably do this from some sort of standard extension. So I don't see that we can author such an extension.

from osgi-test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.