Skip to content

Jdbc FiberConnection doesn't use Fibers where appropriate #27

@hsestupin

Description

@hsestupin

Hi, may be I'm misunderstood something. Is there any reason behind that fibers aren't used in every FiberConnection method which throws SQLException exception. For example java.sql.Connection#commit is a blocking method undoubtedly. Why don't we have to wrap it to something like this:

FiberAsync.runBlocking(exec, new CheckedCallable<Void, SQLException>() {

    @Override
    public Void call() throws SQLException {
        return conn.commit();
    }
});

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions