Consider the function $ f(t) = e^{2\pi j} $
In order to determine if the function is periodic or not we need to use the formula:
$ \omega0/(2\pi) = k/N $
where in this case the function is periodic because $ \omega0 = 2\pi $ so k and N can be any number such that k = N and k/N is the rational number 1.
For the function to be non-periodic, if $ \omega0 = \sqrt{2}\pi $ then the function would be non-periodic because k/N would be equal to a irrational number.
The Periodic Signal is shown below:
And here is the non-periodic signal: