Skip to content

Commit

Permalink
Rename to deferredProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 6, 2023
1 parent c1e803d commit 86f83f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static Command print(String message) {
* @return the command
* @see ProxyCommand
*/
public static Command proxy(Supplier<Command> supplier) {
public static Command deferredProxy(Supplier<Command> supplier) {
return new ProxyCommand(supplier);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ CommandPtr cmd::Print(std::string_view msg) {
return PrintCommand(msg).ToPtr();
}

CommandPtr cmd::Proxy(wpi::unique_function<Command*()> supplier) {
CommandPtr cmd::DeferredProxy(wpi::unique_function<Command*()> supplier) {
return ProxyCommand(std::move(supplier)).ToPtr();
}

CommandPtr cmd::Proxy(wpi::unique_function<CommandPtr()> supplier) {
CommandPtr cmd::DeferredProxy(wpi::unique_function<CommandPtr()> supplier) {
return ProxyCommand(std::move(supplier)).ToPtr();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ CommandPtr Print(std::string_view msg);
* @param supplier the command supplier
*/
[[nodiscard]]
CommandPtr Proxy(wpi::unique_function<Command*()> supplier);
CommandPtr DeferredProxy(wpi::unique_function<Command*()> supplier);

/**
* Constructs a command that schedules the supplied command when initialized,
Expand All @@ -153,7 +153,7 @@ CommandPtr Proxy(wpi::unique_function<Command*()> supplier);
* @param supplier the command supplier
*/
[[nodiscard]]
CommandPtr Proxy(wpi::unique_function<CommandPtr()> supplier);
CommandPtr DeferredProxy(wpi::unique_function<CommandPtr()> supplier);

// Idling Commands

Expand Down

0 comments on commit 86f83f7

Please sign in to comment.