Sha256: 364f387b511f5e445a1edae15241ce849e664d9a3be1ed83cf35517cae9014fb
Contents?: true
Size: 395 Bytes
Versions: 71
Compression:
Stored size: 395 Bytes
Contents
package org.embulk.exec; public class SetCurrentThreadName implements AutoCloseable { private final String original; public SetCurrentThreadName(String name) { this.original = Thread.currentThread().getName(); Thread.currentThread().setName(name); } @Override public void close() { Thread.currentThread().setName(original); } }
Version data entries
71 entries across 71 versions & 1 rubygems