2.0.3 and .stop()

5 views
Skip to first unread message

Paul Hammant

unread,
Aug 3, 2019, 1:23:00 AM8/3/19
to jooby-project
In 2.0.0 this didn't work (versus 1.x where it did):

app = new MyJoobyApp();
app.start()
// some time later
app.stop()

The workaround was to do:

app = new MyJoobyApp();
stoppable = app.start()
// some time later
stoppable.stop()

I saw in the release notes for 2.0.3 that something had been improved re stop(), but it wasn't that - right?

- Paul

Edgar Espina

unread,
Aug 3, 2019, 2:48:27 PM8/3/19
to jooby-project
No, wasn't that.

The reason of such decision was for multiple application deployment...but now I'm not sure about adding it, so probably could back to just `app.stop` like it was in 1.x

Paul Hammant

unread,
Aug 3, 2019, 4:24:12 PM8/3/19
to Edgar Espina, jooby-project
Whichever way you want, Edgar, I was just after clarification

--
You received this message because you are subscribed to the Google Groups "jooby-project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooby-projec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooby-project/e2f235ac-3b27-4eb0-8b15-4f9baa3bae59%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages