Skip to content

Commit 27e81e3

Browse files
committed
Rename Promises::FactoryMethods.create to make_future to avoid name collisions
1 parent af282b7 commit 27e81e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/promises.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def resolved_event(default_executor = self.default_executor)
165165
# @overload create(value, default_executor = self.default_executor)
166166
# @param [Object] value when none of the above overloads fits
167167
# @return [Future] a fulfilled future with the value.
168-
def create(argument = nil, default_executor = self.default_executor)
168+
def make_future(argument = nil, default_executor = self.default_executor)
169169
case argument
170170
when AbstractEventFuture
171171
# returning wrapper would change nothing

0 commit comments

Comments
 (0)