Skip to content

Commit

Permalink
[split] Fix typo in README
Browse files Browse the repository at this point in the history
Github-pull-request: #104
Signed-off-by: Steve Gury <stevegury@twitter.com>

RB_ID=83620
  • Loading branch information
jdanbrown authored and stevegury committed Aug 29, 2012
1 parent 7efa457 commit dabd9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ The `Util` project contains a `Function0` class that represents a Scala closure.
The following example shows a Thrift server that places the blocking operation defined in the `Future0` object's `apply` method in the Java thread pool, where it will eventually execute and return a result:

public static class HelloServer implements Hello.ServiceIface {
ExecutorService pool = Executors.newFixedThreadPool(4); // Java thread pool
ExecutorServiceFuturePool futurePool = new ExecutorServiceFuturePool(threads); // Java Future thread pool
ExecutorService pool = Executors.newFixedThreadPool(4); // Java thread pool
ExecutorServiceFuturePool futurePool = new ExecutorServiceFuturePool(pool); // Java Future thread pool

public Future<Integer> blockingOperation() {
Function0<Integer> blockingWork = new BlockingOperation();
Expand Down

0 comments on commit dabd9a5

Please sign in to comment.