This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps -o nlwp <pid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn retryable | |
| "Returns a function that retries f up to max-attempts, with exponentially | |
| increasing delay, when pred returns truthy for a raised exception. | |
| If max-attempts has been exceeded failure-handler (if any) | |
| is invoked with the exception and arguments of f, in that order. | |
| failure-handler must return an exception." | |
| [f pred & {:keys [failure-handler | |
| max-attempts | |
| backoff-millis] | |
| :or {failure-handler (fn [ex & _] ex) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |