Skip to content

Commit

Permalink
add a Sync Executor
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed May 8, 2019
1 parent 284fd04 commit 4281011
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions samples/src/main/java/org/bsc/java2ts/JSExecutor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.bsc.java2ts;

import java.util.concurrent.Executor;

public class JSExecutor implements Executor {

public JSExecutor() {}

@Override
public void execute(Runnable command) {
command.run();
}

}
6 changes: 4 additions & 2 deletions samples/src/test/java/org/bsc/java2ts/jdk8/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
@Type(value=java.lang.management.MemoryType.class, export=true),

@Type(value=java.util.concurrent.CompletableFuture.class, export=true),
@Type(value=java.util.concurrent.Executor.class, functional=true, export=true),
@Type(value=java.util.concurrent.Executor.class),
// Member Classes
@Type(value=java.util.Map.Entry.class),
//@Type(value= javax.swing.text.AbstractDocument.class),
//@Type(value= javax.swing.text.AbstractDocument.AttributeContext.class),

@Type(value=java.util.function.Consumer.class, alias="Consumer", export=true),

@Type( value=org.bsc.java2ts.JSExecutor.class, export=true)

})
package org.bsc.java2ts.jdk8;
Expand Down

0 comments on commit 4281011

Please sign in to comment.