Skip to content

Commit

Permalink
add watchValue to InterpAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Apr 27, 2020
1 parent 5d83709 commit 817a5ef
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ trait InterpAPI {
*/
def watch(p: os.Path): Unit

/**
* A generalization of [[watch]], allows watching arbitrary values and not
* just the contents of file paths.
*/
def watchValue[T](v: => T): T

/**
* The colors that will be used to render the Ammonite REPL in the terminal,
* or for rendering miscellaneous info messages when running scripts.
Expand Down

0 comments on commit 817a5ef

Please sign in to comment.