Hi Marshall, Thank you very much for your suggestion. Is that something you think would be easy to integrate in jOOQ without adding a dependency on Kotlin libraries? How does supporting that out of the box compare to an extension method (at least for now)? I would imagine that this could be implemented entirely outside of jOOQ, too...
Thanks, Lukas On Mon, Sep 30, 2019 at 4:39 PM Marshall Pierce <[email protected]> wrote: > One more... > > It'd make integration with Kotlin coroutines (OK, that's not just Kotlin > the language...) easier/possible to have something like `transactionResult` > that instead of taking a `TransactionCallable` and doing all the > ManagedBlocker bits, took something whose `run()` (or equivalent) was a > `suspend` function. In Kotlinese, that could be simply a function type: > `suspend (Configuration) -> T`. > > My current use case is that I'd like to be able to kick off some > fire-and-forget async work inside a transaction, and for various reasons > I'd prefer to have that be done via coroutines rather than > `CompletableFuture` and friends (e.g. coroutine context carries over to > child coroutines, unlike threadlocals, and other such things). > > -- > You received this message because you are subscribed to the Google Groups > "jOOQ User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jooq-user/0a5a7ec5-3a9a-49cc-8da9-36cd7246849b%40googlegroups.com > <https://groups.google.com/d/msgid/jooq-user/0a5a7ec5-3a9a-49cc-8da9-36cd7246849b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO5JrT7yYO51%2BSdWMEcLGtP6gO1vRQW7wKERb4%2BfWadvaw%40mail.gmail.com.
