Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: benbjohnson/clock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: benbjohnson/clock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.0
Choose a head ref
  • 18 commits
  • 3 files changed
  • 6 contributors

Commits on Nov 27, 2020

  1. Fix typo in Ticker example

    narqo authored Nov 27, 2020
    Configuration menu
    Copy the full SHA
    9d456ff View commit details
    Browse the repository at this point in the history
  2. Merge pull request #26 from narqo/patch-1

    Fix typo in Ticker example
    benbjohnson authored Nov 27, 2020
    Configuration menu
    Copy the full SHA
    4031354 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2021

  1. Configuration menu
    Copy the full SHA
    0f43ae6 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2021

  1. Merge pull request #28 from dcherman/master

    Implement reset for mocked tickers
    benbjohnson authored Feb 13, 2021
    Configuration menu
    Copy the full SHA
    c97fc7b View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Fix tests to not call t.Fatal from a goroutine

    The "too late!" version of this call was being made *after* the
    corresponding test had completed, causing all manner of sadness from the
    testing package.
    
    This refactors the tests to just measure the duration of the various
    kinds of sleep, and assert that the duration is within a good range.
    djmitche committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    ae80999 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. Merge pull request #34 from djmitche/test-fixes

    Fix tests to not call t.Fatal from a goroutine
    djmitche authored Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f7a1d13 View commit details
    Browse the repository at this point in the history
  2. Address re-entrancy of Tick

    This defers execution of the ticked function until after the lock has
    been released, allowing it to make other calls without a deadlock.
    djmitche committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0b9476f View commit details
    Browse the repository at this point in the history
  3. add a Duration type alias

    djmitche committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    850609f View commit details
    Browse the repository at this point in the history
  4. add note about maintenance

    djmitche committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5ad814c View commit details
    Browse the repository at this point in the history
  5. Merge pull request #35 from djmitche/issue33

    Address re-entrancy of Tick
    djmitche authored Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f495692 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #36 from djmitche/issue30

    add a Duration type alias
    djmitche authored Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4378ee0 View commit details
    Browse the repository at this point in the history
  7. Use channels to avoid races in tests

    Using a mock for time doesn't mean races aren't important.  This tries
    to set a good Example by using channels rather than shared variables for
    communication between goroutines.
    djmitche committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    99d58a2 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. Configuration menu
    Copy the full SHA
    47e2ce0 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. add Until

    djmitche committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    37a1270 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Josh Soref <[email protected]>
    djmitche and jsoref authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    eb95674 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #38 from djmitche/issue29

    add Until
    djmitche authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    0a12ec5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #37 from djmitche/issue8

    Use channels to avoid races in tests
    djmitche authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    1ae85fe View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. add docs badge to README

    djmitche committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    26f124e View commit details
    Browse the repository at this point in the history
Loading