Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
Does anyone have any experience with running >=2 warps from the same main? I would guess there's no issue, but I'm not sure if warp doesn't have some hidden global variables that make this an issue.
warp
main
Welp! I don't think it is safe to do so
pauseTimeoutKey :: Vault.Key (IO ()) pauseTimeoutKey = unsafePerformIO Vault.newKey {-# NOINLINE pauseTimeoutKey #-} getFileInfoKey :: Vault.Key (FilePath -> IO FileInfo) getFileInfoKey = unsafePerformIO Vault.newKey {-# NOINLINE getFileInfoKey #-} getClientCertificateKey :: Vault.Key (Maybe CertificateChain) getClientCertificateKey = unsafePerformIO Vault.newKey {-# NOINLINE getClientCertificateKey #-}
from warps implementation..
Does anyone have any experience with running >=2
warp
s from the samemain
?I would guess there's no issue, but I'm not sure if
warp
doesn't have some hidden global variables that make this an issue.Welp! I don't think it is safe to do so
from
warp
s implementation..