Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit 712e610

Browse files
committed
Add new java doc to CrazyLambdas.java
1 parent 55aef9d commit 712e610

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crazy-lambdas/src/main/java/com/bobocode/CrazyLambdas.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ public static Consumer<Runnable> newThreadRunnableConsumer() {
123123
throw new UnsupportedOperationException("It's your job to implement this method"); // todo
124124
}
125125

126-
126+
/**
127+
* Returns a {@link Function} that accepts an instance of {@link Runnable} and returns a {@link Supplier} of a
128+
* started {@link Thread} that is created from a given {@link Runnable}
129+
*
130+
* @return a function that transforms runnable into a thread supplier
131+
*/
127132
public static Function<Runnable, Supplier<Thread>> runnableToThreadSupplierFunction() {
128133
throw new UnsupportedOperationException("It's your job to implement this method"); // todo
129134
}

0 commit comments

Comments
 (0)